Skip to content

[fork-CI] [19.0][MIG] ddmrp_exclude_moves_adu_calc_sales: Migration to 19.0#21

Draft
dnplkndll wants to merge 13 commits into
19.0from
19.0-mig-ddmrp_exclude_moves_adu_calc_sales
Draft

[fork-CI] [19.0][MIG] ddmrp_exclude_moves_adu_calc_sales: Migration to 19.0#21
dnplkndll wants to merge 13 commits into
19.0from
19.0-mig-ddmrp_exclude_moves_adu_calc_sales

Conversation

@dnplkndll

Copy link
Copy Markdown

Migration of ddmrp_exclude_moves_adu_calc_sales from 18.0 to 19.0.

Fork-CI validation PR. Will be closed once upstream PR against OCA/ddmrp is
opened from the same branch.

@dnplkndll dnplkndll force-pushed the 19.0-mig-ddmrp_exclude_moves_adu_calc_sales branch 7 times, most recently from 81f6755 to 9b37e39 Compare June 18, 2026 16:39
@dnplkndll dnplkndll force-pushed the 19.0-mig-ddmrp_exclude_moves_adu_calc_sales branch from 9b37e39 to 581ef45 Compare June 19, 2026 16:11
@dnplkndll dnplkndll force-pushed the 19.0-mig-ddmrp_exclude_moves_adu_calc_sales branch 3 times, most recently from 72c48a5 to f4f0da3 Compare July 7, 2026 13:34
DavidJForgeFlow and others added 13 commits July 9, 2026 16:06
Add tests and also maintain a logic between sale.order.line and stock.move exclude_from_adu. If all the stock moves have the same value, it will propagate to the sale order line.
Currently translated at 100.0% (4 of 4 strings)

Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_exclude_moves_adu_calc_sales
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_exclude_moves_adu_calc_sales/it/
Currently translated at 100.0% (4 of 4 strings)

Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_exclude_moves_adu_calc_sales
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_exclude_moves_adu_calc_sales/es/
…bustness

The previous approach was error prone as there could be corner cases in which
the `exclude_from_adu` field in SO and moves is misaligned. With a compute and
inverse methods approach we ensure that there are no misalignments and keep
the field in the stock.move as the only source of truth.
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
@dnplkndll dnplkndll force-pushed the 19.0-mig-ddmrp_exclude_moves_adu_calc_sales branch from f4f0da3 to 0dd9364 Compare July 9, 2026 16:06
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.

7 participants