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
migration of sale_payment_method #35
Conversation
92d2204
to
96c4260
Compare
1 similar comment
96c4260
to
0f7996b
Compare
journal_id = fields.Many2one( | ||
comodel_name='account.journal', | ||
string='Journal', | ||
help="If a journal a selected, when a payment is recorded " |
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.
s/a selected/is selected/
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.
✓
Name is required, use named arguments.
The page automation_information is now created in sale_automatic_workflow the field will be moved in this tab when the other module is installed (with a link module)
Keep the original method with a deprecation warning to help people eventually inheriting this method to not lose their minds when migrating their code.
de680f4
to
dfcb129
Compare
code looks ok. Having automated tests would be nice, but this will get exercised by the magento connector tests presumably. 👍 |
The computed field was used to hide the button 'View Automatic Payment' when the sales order has at least one payment. It is now using only a condition on payment_ids, thanks to @hbrunn for the correct definition: [('payment_ids', '=', [[6, False, []]])]
@guewen, please rename the method mentioned above and I'll merge this to continue with the migration plan. |
That's done already: guewen@dfcb129 |
I didn't see the deprecation trick. I merge then. |
migration of sale_payment_method
Supersedes #33
Continues migration of
sale_payment_method
.The things that were common to
sale_payment_method
andsale_automatic_workflow
are now in #34