Skip to content

[19.0][MIG] stock_picking_analytic: Migration to 19.0 - #965

Merged
OCA-git-bot merged 29 commits into
OCA:19.0from
vauxoo-dev:19.0-mig-stock_picking_analytic-moy
Aug 22, 2026
Merged

[19.0][MIG] stock_picking_analytic: Migration to 19.0#965
OCA-git-bot merged 29 commits into
OCA:19.0from
vauxoo-dev:19.0-mig-stock_picking_analytic-moy

Conversation

@moylop260

Copy link
Copy Markdown

Supersedes #913, which has been waiting on a rebase since the stock_analytic migration landed.

This branch is #913 rebased on the current 19.0, with a single change: the last commit,
[DON'T MERGE] - test-requirements.txt, is dropped. That commit only pinned

odoo-addon-stock_analytic @ git+https://github.com/OCA/account-analytic.git@refs/pull/898/head#subdirectory=stock_analytic

and #898 was merged on 2026-08-12, so stock_analytic is already in 19.0 and the pin is
obsolete. It was also the only reason the Detect unreleased dependencies check was failing
on #913; every other check there was green.

All 29 commits keep their original authors and author dates — nothing was squashed or
rewritten. Credit for the 19.0 migration goes to @Yusuke1998, and the module tree is
byte-identical to the one already reviewed in #913.

#913 was approved by @stferraro, @BhaveshHeliconia, @Karla-Villegas, @raulovallet and
@FrancoMaxime; cc @rousseldenis as module maintainer.

@Yusuke1998, please close #913 once this one is merged (or feel free to push the same
rebase to your branch instead and I will close this).

rousseldenis and others added 29 commits August 21, 2026 17:11
- Switch field from analytic_account_id to analytic_distribution.
- Assign a dummy search arg to move_ids_without_package field (stock.picking) to bypass
  the warning from https://github.com/odoo/odoo/blob/0f84366/odoo/fields.py#L808-L812.
- Add an invisible analytic distribution field without group assignment in the picking
  form, due to newly added check in odoo/odoo@0501bbd.
Currently translated at 100.0% (7 of 7 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_picking_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_picking_analytic/es/
Currently translated at 42.8% (3 of 7 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_picking_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_picking_analytic/pt_BR/
Currently translated at 100.0% (7 of 7 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_picking_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_picking_analytic/pt_BR/
Currently translated at 100.0% (7 of 7 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_picking_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_picking_analytic/it/
… distribution computation

Replaced the stock picking analytic distribution search and validations
with a query to improve performance when there are large amounts of
picking and move records. Also, updated test to handle a case where
there are different analytic accounts on moves related to a picking.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-analytic-17.0/account-analytic-17.0-stock_picking_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-17-0/account-analytic-17-0-stock_picking_analytic/
Currently translated at 100.0% (6 of 6 strings)

Translation: account-analytic-17.0/account-analytic-17.0-stock_picking_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-17-0/account-analytic-17-0-stock_picking_analytic/it/
@OCA-git-bot OCA-git-bot added the mod:stock_picking_analytic Module stock_picking_analytic label Aug 21, 2026
@moylop260

Copy link
Copy Markdown
Author

This is the same approved PR #913
but rebased with same author commits
So, fast-tracking since that it is already approved

@moylop260

Copy link
Copy Markdown
Author

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-965-by-moylop260-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit ef96d2a into OCA:19.0 Aug 22, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at b4fb9c1. Thanks a lot for contributing to OCA. ❤️

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.