-
-
Notifications
You must be signed in to change notification settings - Fork 482
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 autopay option on sale automatic workflow #55
Conversation
_logger.debug('Sale Orders to automatically pay: %s', sales) | ||
for sale in sales: | ||
with commit(self.env.cr): | ||
sale.automatic_payment() |
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.
Are you relaying in any other module for this function?
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.
it is defined in sale_payment_method
ca01fcb
to
342896f
Compare
Sounds good 👍 |
cc95b90
to
27ae398
Compare
added some tests too. |
976c822
to
cfee847
Compare
👍 |
Looks good 👍 |
cfee847
to
39d24fb
Compare
|
||
@api.model | ||
def _get_domain_for_sale_autopayment(self): | ||
return [('state', '=', 'draft'), |
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.
It is intentional that this will not get open
orders? Do you think this could interfere with the workflow that confirms orders in sale_automatic_workflow
?
Neat! This is significant enough to bump the module version. |
Hi @gurneyalex do you think you could make a PR moving this module to https://github.com/OCA/sale-workflow as discussed here #47 |
Ok, I moved this to OCA/sale-workflow#243. Please continue reviewing there. Thanks! |
No description provided.