Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

gurneyalex
Copy link
Member

No description provided.

_logger.debug('Sale Orders to automatically pay: %s', sales)
for sale in sales:
with commit(self.env.cr):
sale.automatic_payment()
Copy link
Member

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?

Copy link
Member Author

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

@guewen
Copy link
Member

guewen commented Sep 3, 2015

Sounds good 👍

@gurneyalex gurneyalex force-pushed the 8.0-autopay-workflow branch 3 times, most recently from cc95b90 to 27ae398 Compare September 3, 2015 14:36
@gurneyalex
Copy link
Member Author

added some tests too.

@gurneyalex gurneyalex force-pushed the 8.0-autopay-workflow branch 2 times, most recently from 976c822 to cfee847 Compare September 3, 2015 14:43
@moylop260
Copy link

👍

@bguillot
Copy link

Looks good 👍


@api.model
def _get_domain_for_sale_autopayment(self):
return [('state', '=', 'draft'),
Copy link
Member

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?

@lepistone
Copy link
Member

Neat! This is significant enough to bump the module version.

@rafaelbn
Copy link
Member

Hi @gurneyalex do you think you could make a PR moving this module to https://github.com/OCA/sale-workflow as discussed here #47
Thanks again

@lepistone
Copy link
Member

Ok, I moved this to OCA/sale-workflow#243. Please continue reviewing there. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants