Skip to content

[18.0] [MIG] pricelist_brand (refresh) - #318

Open
jarcosmts wants to merge 9 commits into
OCA:18.0from
jarcosmts:18.0-mig_pricelist_brand_refresh
Open

[18.0] [MIG] pricelist_brand (refresh)#318
jarcosmts wants to merge 9 commits into
OCA:18.0from
jarcosmts:18.0-mig_pricelist_brand_refresh

Conversation

@jarcosmts

@jarcosmts jarcosmts commented Jul 29, 2026

Copy link
Copy Markdown

Refresh of #298 - rebased against latest 18.0.

The original PR #298 had 4 approvals and was marked "ready to merge",
but merge attempts failed due to pre-existing test failures in
account_analytic_brand and sale_analytic_brand (test_combine_analytic_with_product).

Root cause: Odoo 18's _merge_distribution() combines analytic distribution
keys from different analytic plans into a single comma-separated key
(e.g. {'25,24': 100.0}) instead of keeping them separate
({'25': 100.0, '24': 100.0}).

Fix: Override _merge_distribution() in analytic_brand to return a simple
dict union when the distributions come from different analytic plans.

@pedrobaeza

pedrobaeza commented Jul 29, 2026

Copy link
Copy Markdown
Member

Not so fast, as if the problems were in the other PR, there will be here as well. Let's see the CI.

@OCA-git-bot OCA-git-bot added the mod:analytic_brand Module analytic_brand label Jul 29, 2026
@jarcosmts

Copy link
Copy Markdown
Author

@pedrobaeza the pre-commit issue has been fixed and all checks are now green. Could you try merging again?

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Sorry @jarcosmts you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@pedrobaeza

Copy link
Copy Markdown
Member

Please squash the last 2 commits into one, as it's the same code.

…ic plans

When merging analytic distributions from different analytic plans,
Odoo's _merge_distribution combines keys into a single comma-separated
key instead of keeping them separate. This fix ensures distributions
for different plans are merged as a simple union.
@jarcosmts
jarcosmts force-pushed the 18.0-mig_pricelist_brand_refresh branch from 39efb37 to 61c9e40 Compare July 29, 2026 10:16
@jarcosmts

Copy link
Copy Markdown
Author

@pedrobaeza squashed the fix commits, all checks are green now. Could you try merging again?

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Sorry @jarcosmts you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@jarcosmts

Copy link
Copy Markdown
Author

Please squash the last 2 commits into one, as it's the same code.

Done :D

@juanparmer juanparmer left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

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

Labels

mod:analytic_brand Module analytic_brand mod:pricelist_brand Module pricelist_brand series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants