Skip to content

Conversation

@bizzappdev
Copy link

@bizzappdev bizzappdev commented Oct 3, 2025

Dependency PR for module brand: #270

osi-scampbell and others added 30 commits October 3, 2025 16:57
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
OCA-git-bot and others added 21 commits October 3, 2025 16:57
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/
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/
@bizzappdev bizzappdev marked this pull request as ready for review October 3, 2025 12:01
@rousseldenis
Copy link

/ocabot migration account_brand

string="Account",
required=True,
domain="[('account_type', 'in', ('liability_payable', 'asset_receivable'))]",
domain="[('account_type', '=', account_type)]",

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 ?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.