OdooWiki OCA HUB

DDMRP Packaging Product Replace

ddmrp_packaging_product_replace folder_open OCA/ddmrp open_in_new
Warehouse Management License: LGPL-3

This is a glue module between ddmrp_packaging and ddmrp_product_replace. It disables the copy of the packaging information when using the product replacement wizard. Without it the new stock buffer created have the packaging of the old product set on them and the constraint _check_product_packaging raises an error.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Glue module that prevents the packaging of the old product from being copied onto the new stock buffer when using the DDMRP product replacement wizard, avoiding a validation error.

This is a small technical bridge module between two DDMRP features: product replacement and packaging. It does not add any new screen, menu or button.

When a user runs the DDMRP product replacement wizard to replace one product with another, Odoo prepares the default values for the new stock buffer that will be created. This module changes that preparation so the packaging field is left empty instead of being copied from the old product.

  • Without this change, the new buffer would inherit the old product's packaging, which does not belong to the new product.
  • That mismatch would trigger the packaging validation rule on the buffer and raise an error, blocking the replacement.
  • With this module installed, the replacement completes normally and the new buffer simply has no packaging set.

The module only touches the ddmrp.product.replace wizard by extending its default-value method. It is set to install automatically when both DDMRP packaging and DDMRP product replacement are present, so users do not need to install it manually. No new business rules, reports, emails or scheduled actions are introduced.

Models and fields (1)
  • ddmrp.product.replace · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.