-
-
Notifications
You must be signed in to change notification settings - Fork 770
[18.0][MIG] account_warn_option: Migration to 18.0 #2194
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
base: 18.0
Are you sure you want to change the base?
Conversation
45f8542 to
7fd0b40
Compare
4258f4e to
7394b8c
Compare
|
What was the reason for the latest commit? |
Andrii9090
left a comment
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.
Add the temporal referece to this PR OCA/server-ux#1204 to be able to test this module |
Shide
left a comment
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.
Code and functional review
| <xpath expr="//field[@name='invoice_warn_msg']" position="before"> | ||
| <field | ||
| name="invoice_warn_option" | ||
| domain="[('allowed_warning_type', '=', invoice_warn), ('allowed_warning_usage', 'in', ('all', 'partner_invoice_warn'))]" |
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 base_warn_options submodules (including this one), could improve this domain to allow allowed_warning_type == False to be shown on warnings and block.
This is an improvement, and if it's done, should be done in a separate commit with help strings improvements.
Something like this:
| domain="[('allowed_warning_type', '=', invoice_warn), ('allowed_warning_usage', 'in', ('all', 'partner_invoice_warn'))]" | |
| domain="['|', ('allowed_warning_type', '=', invoice_warn), ('allowed_warning_type', '=', False), ('allowed_warning_usage', 'in', ('all', 'partner_invoice_warn'))]" |


Migration from version 15.0 to version 18.0
This module depends on PR:
@moduon @Shide MT-13043
https://www.loom.com/share/43b2355ab5d5474ea810a422feb513a3