Skip to content

feat(l10n_do_banks): merge OCA stock_analytic on upgrade - #60

Merged
fernando-pcg merged 1 commit into
masterfrom
master-014-lf
Aug 19, 2026
Merged

feat(l10n_do_banks): merge OCA stock_analytic on upgrade#60
fernando-pcg merged 1 commit into
masterfrom
master-014-lf

Conversation

@luis-pcg

@luis-pcg luis-pcg commented Aug 10, 2026

Copy link
Copy Markdown

OCA never migrated stock_analytic to 19.0. Left alone it stays in the database as an inconsistent module, and whoever uninstalls it to clear that error drops the analytic_distribution columns of stock_move, stock_move_line and stock_scrap, losing every analytic imputation on the delivery notes.

Field, model and column names are identical in the replacement module stock_analytic_distribution_features (store-addons), so merge_module only moves metadata: no jsonb is rewritten and no analytic line is regenerated, so historical project costs cannot be duplicated. It also removes the old module row and force-installs the replacement.

Verified against a database built from a stock_analytic clone: without the merge the three columns are dropped, with it the jsonb and the existing analytic lines survive unchanged.

OCA never migrated stock_analytic to 19.0. Left alone it stays in the database
as an inconsistent module, and whoever uninstalls it to clear that error drops
the analytic_distribution columns of stock_move, stock_move_line and
stock_scrap, losing every analytic imputation on the delivery notes.

Field, model and column names are identical in the replacement module
stock_analytic_distribution_features (store-addons), so merge_module only moves
metadata: no jsonb is rewritten and no analytic line is regenerated, so
historical project costs cannot be duplicated. It also removes the old module
row and force-installs the replacement.
@fernando-pcg
fernando-pcg merged commit 40f86d4 into master Aug 19, 2026
@fernando-pcg
fernando-pcg deleted the master-014-lf branch August 19, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants