Skip to content

[20.0][MIG] product_brand: Migration to 20.0 - #327

Open
josecanogil wants to merge 79 commits into
OCA:20.0from
DynAppsNV:20.0-mig-product_brand
Open

josecanogil wants to merge 79 commits into
OCA:20.0from
DynAppsNV:20.0-mig-product_brand

Conversation

@josecanogil

Copy link
Copy Markdown

Migration of product_brand to 20.0.

  • Access rights: ir.model.access.csv converted to ir.access.csv (same four rows).
  • Reports: sale.report and account.invoice.report no longer have the _select* / _group_by* hooks in 20.0; the brand is now added through _select_dict and _select_list, following the core pattern (sale_stock, sale).
  • Brand kanban: t-esc is no longer allowed in view archs, replaced by t-out.
  • Menu: sale.prod_config_main was removed; the menu now lives under Sales > Products (sale.product_menu_catalog), restricted to sales managers to keep the same audience as before.
  • Smart button icon: 20.0 renders button icons with Material Symbols, so fa-cubes is replaced by view_list (as on the product category form).
  • Tests: BaseCommon now runs as a test user with only base.group_user; the common test class sets _test_user_groups to Product: Create.
  • Removed the redundant string flagged by pylint-odoo and the past financed-migration credits.

Assisted-by: Claude Code:claude-opus-5-5

bguillot and others added 30 commits October 8, 2026 12:36
* add smart button, move menu to a more visible position.
* show brand in product.template kanban and tree views.
* show brand in product variant kanban and tree views.
* add product_brand kanban view.
* update module's README and manifest file.
* Search and group by brand for both product.product and product.template.
* Convert model to new APIs.
* Refactor products_count computation using product_ids one2many field.
* Add public read access to product.brand (fixes 403 error on webshop for public user).
* Make brand name required.
Old form view was out of order: form blocks misaligned, because it was
not using Odoo 10 views styling and layout.
Lookup fails when the ID is formatted. The unformatted version of the
data is located under `raw_value`.
Currently translated at 100,0% (21 of 21 strings)

Translation: product-attribute-11.0/product-attribute-11.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-11-0/product-attribute-11-0-product_brand/de/
… with other odoo apps. (#364)

* Make the logo always the same width (64px).
* Remove the description (200 first caracters). Not relevant for a configuration model.
* Move the brand name and product count beside the image. This is the way it is displayed in partners and products kanban views.
Currently translated at 100.0% (24 of 24 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_brand/es/
Currently translated at 37.5% (9 of 24 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_brand/nb_NO/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_brand/nb_NO/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_brand/nl_NL/
pedrocs-exo and others added 23 commits October 8, 2026 12:45
Currently translated at 100.0% (23 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/pt/
- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-17.0/brand-17.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand/it/
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-17.0/brand-17.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand/pt_BR/
* Rule product.brand.public has no group, this is a deprecated feature.
odoo/odoo#125216

* Every access-granting rule should specify a group.
odoo/odoo@ce1a4a2
Co-authored-by: Do Anh Duy <duyda@trobz.com>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: brand-18.0/brand-18.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-product_brand/
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-18.0/brand-18.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-product_brand/it/
Currently translated at 95.4% (21 of 22 strings)

Translation: brand-18.0/brand-18.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-product_brand/nl/
sale_ok and purchase_ok fields are not well aligned after product_brand is installed. This fix re-align the two fields in the same base line.
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-19.0/brand-19.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-19-0/brand-19-0-product_brand/it/
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-19.0/brand-19.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-19-0/brand-19-0-product_brand/sl/
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-19.0/brand-19.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-19-0/brand-19-0-product_brand/sl/
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
@josecanogil josecanogil mentioned this pull request Oct 8, 2026
13 tasks
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

/ocabot migration product_brand

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.