-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] sepa_sale_order_autoconfirm #345
base: 16.0
Are you sure you want to change the base?
Conversation
fb7627e
to
f32fadf
Compare
f32fadf
to
88667a7
Compare
@victor-champonnois Please, rebase here on 16.0 branch to clean tests. :) |
"license": "AGPL-3", | ||
"depends": [ | ||
"payment_sepa_dd", | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
], | |
"website_sale", | |
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that this module should be named website_sale_order_sepa_autoconfirm
.
website_sale = self.team_id == self.env.ref( | ||
"sales_team.salesteam_website_sales" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this to detect whether this is done through the e-commerce? this seems a little dirty to me. isn’t there a cleaner way? like checking whether self.website_id
is truthy?
class SaleOrder(models.Model): | ||
_inherit = "sale.order" | ||
|
||
def action_quotation_sent(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method needs a comment. when is this called and why is it this method that is overridden?
) | ||
if website_sale and sepa_product: | ||
self.action_confirm() | ||
return self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the parent method doesn’t return anything, so this one shouldn’t either.
https://gestion.coopiteasy.be/web#id=13411&action=475&active_id=605&model=project.task&view_type=form&menu_id=536
test fails because depends on #341