Skip to content

[19.0][MIG] analytic_brand: Migration to 19.0 - #317

Open
ManfredNelvin-Dev wants to merge 44 commits into
OCA:19.0from
ManfredNelvin-Dev:19.0-mig-analytic_brand
Open

[19.0][MIG] analytic_brand: Migration to 19.0#317
ManfredNelvin-Dev wants to merge 44 commits into
OCA:19.0from
ManfredNelvin-Dev:19.0-mig-analytic_brand

Conversation

@ManfredNelvin-Dev

Copy link
Copy Markdown

This PR migrates the analytic_brand module to Odoo 19.0.

sbejaoui and others added 30 commits July 21, 2026 15:43
[UPD] README.rst

[FIX] Fixed travis.
[UPD] Update analytic_brand.pot
Currently translated at 100.0% (2 of 2 strings)

Translation: brand-15.0/brand-15.0-analytic_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-15-0/brand-15-0-analytic_brand/es/
Currently translated at 100.0% (2 of 2 strings)

Translation: brand-17.0/brand-17.0-analytic_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-analytic_brand/it/
There is a common issue in v18 when creating a new res.partner in tests
(which is the case here as we create a res.brand).
There is a required field autopost_bills in account addon.
As this addon doesn't depend on account, if we install this addon
on a DB where account is also installed, tests will fail because
the autopost_bills column is created into postgres, with the not null constraint,
but the default value won't be set by Odoo.

Running these tests in post-install ensure Odoo will set the default value
as specified in the account addon.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: brand-18.0/brand-18.0-analytic_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-analytic_brand/
mymage and others added 13 commits July 21, 2026 15:43
Currently translated at 100.0% (4 of 4 strings)

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

Translation: brand-18.0/brand-18.0-analytic_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-analytic_brand/es/
Add brands as a dimension in account analytic distribution models,
instead of defining the analytic distribution directly on the brand.
This makes the code more standard, allowing to use the standard flow
of analytic distribution models everywhere where they will be used.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: brand-18.0/brand-18.0-analytic_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-analytic_brand/
…tribution models using the right company.

Before this commit the post-migration 18.0.2.0.0 script in analytic_brand
created analytic distribution models from brands shared on all companies.
But if the analytic accounts of the existing analytic distributions
belonged to a specific company, Odoo raises an error if the analytic
distribution model is not linked to that company.

This commit fixes the migration script by looking for the right
company from the analytic accounts present in the analytic distribution.
Currently translated at 100.0% (3 of 3 strings)

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

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

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

Translation: brand-18.0/brand-18.0-analytic_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-analytic_brand/sl/
@ManfredNelvin-Dev
ManfredNelvin-Dev force-pushed the 19.0-mig-analytic_brand branch from 66fcc5b to b9012b4 Compare July 24, 2026 04:58
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.