-
-
Notifications
You must be signed in to change notification settings - Fork 194
[19.0][MIG] account_brand: Migration to 19.0 #271
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: 19.0
Are you sure you want to change the base?
[19.0][MIG] account_brand: Migration to 19.0 #271
Conversation
was on OCA/partner-contact, switch to OCA/brand
[ADD] - add sbejaoui as maintainer [IMP] - move brand config section outside multi_company section [FIX] - add brand_use_level to fields_view_get fields
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: brand-17.0/brand-17.0-account_brand Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-account_brand/
Currently translated at 100.0% (21 of 21 strings) Translation: brand-17.0/brand-17.0-account_brand Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-account_brand/it/
Currently translated at 95.2% (20 of 21 strings) Translation: brand-18.0/brand-18.0-account_brand Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-account_brand/nl/
…tomer Credit Notes
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: brand-18.0/brand-18.0-account_brand Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-account_brand/
Currently translated at 100.0% (22 of 22 strings) Translation: brand-18.0/brand-18.0-account_brand Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-account_brand/it/
|
/ocabot migration account_brand |
| string="Account", | ||
| required=True, | ||
| domain="[('account_type', 'in', ('liability_payable', 'asset_receivable'))]", | ||
| domain="[('account_type', '=', account_type)]", |
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 domain evaluated dynamically? I think this is evaluated statically, so, if you change account_type field, the list is not adapted, correct ?
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.
Yes, the domain works dynamically.
Basically, in v15, it was dynamic based on the onchange event: https://github.com/OCA/brand/blob/15.0/account_brand/models/res_partner_account_brand.py#L57
When migrated to v16, it was not considered because the domain return from onchange is not supported from v16 onwards.
Dependency PR for module
brand: #270