[19.0][MIG] analytic_brand: Migration to 19.0 - #317
Open
ManfredNelvin-Dev wants to merge 44 commits into
Open
Conversation
[UPD] README.rst
[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/
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
force-pushed
the
19.0-mig-analytic_brand
branch
from
July 24, 2026 04:58
66fcc5b to
b9012b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates the
analytic_brandmodule to Odoo 19.0.