Skip to content

[fork-CI] [19.0][MIG] ddmrp_product_replace: Migration to 19.0#20

Draft
dnplkndll wants to merge 63 commits into
19.0from
19.0-mig-ddmrp_product_replace
Draft

[fork-CI] [19.0][MIG] ddmrp_product_replace: Migration to 19.0#20
dnplkndll wants to merge 63 commits into
19.0from
19.0-mig-ddmrp_product_replace

Conversation

@dnplkndll

Copy link
Copy Markdown

Migration of ddmrp_product_replace 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_product_replace branch 6 times, most recently from d088c8a to d140767 Compare June 18, 2026 16:39
@dnplkndll dnplkndll force-pushed the 19.0-mig-ddmrp_product_replace branch from d140767 to 6c2f2b3 Compare June 19, 2026 16:11
@dnplkndll dnplkndll force-pushed the 19.0-mig-ddmrp_product_replace branch 3 times, most recently from 7063ae7 to e627d1c Compare July 7, 2026 13:34
LoisRForgeFlow and others added 20 commits July 9, 2026 16:06
* Migration to 11.0
* Add unittest
* Ensure putaway stategies are correctly copied
…are visible after a executing a product replacement.
[UPD] Update ddmrp_product_replace.pot
[UPD] Update ddmrp_product_replace.pot
Some of the main changes included are:
* replacement can be done to a new buffer, instead of changing
  the buffer of the replaced buffer. (new mode "new_buffer")
* In the new mode buffers are related via `replaced_by_id` field.
* Boolean `use_replacement_for_buffer_status` allow to consider
  buffers being replaced in NFP (via on-hand and incoming).
* warnings shown for products being replaced when procuring, and
  procure recommendation is now 0 if the buffer is not
  distributed.
* Views adaptations and improvements.
* Old funtionality kept in mode "use_existing".

[UPD] Update ddmrp_product_replace.pot
…lso for qualified demand.

This way, products replaced by a given buffer can affect the net flow
position of the replacing buffer on the demand side as well.
includes a small fix to avoid singleton errors.

[UPD] Update ddmrp_product_replace.pot
When a replaced buffer is auto-updated its replacement buffers
should also be auto-updated.

[UPD] Update ddmrp_product_replace.pot
Add the product vendor code on the stock buffer based on the already
computed main supplier.
Ivorra78 and others added 29 commits July 9, 2026 16:06
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_product_replace
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_product_replace/
This can leads to a wrong computation of e.g. the qualified demand.

Duplicating a buffer having 'Considered as demand' field set, and
changing the product of the new buffer doesn't empty the 'Considered as
demand' field, resulting with unrelated products that are taken into account
in the computation of the qualified demand.
Currently translated at 1.5% (1 of 65 strings)

Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_product_replace
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_product_replace/pt_BR/
Currently translated at 3.0% (2 of 65 strings)

Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_product_replace
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_product_replace/pt_BR/
It was reported that some users manually modified the replaced by manually. This was not intended so we force the user to use the wizard.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ddmrp-18.0/ddmrp-18.0-ddmrp_product_replace
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-18-0/ddmrp-18-0-ddmrp_product_replace/
Currently translated at 100.0% (65 of 65 strings)

Translation: ddmrp-18.0/ddmrp-18.0-ddmrp_product_replace
Translate-URL: https://translation.odoo-community.org/projects/ddmrp-18-0/ddmrp-18-0-ddmrp_product_replace/it/
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_product_replace branch from e627d1c to f4c4ecb Compare July 9, 2026 16:07
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.