diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index d6e77aaa..22fa7efb 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -96,6 +96,8 @@ class ProductTemplate(models.Model): if product_template: # default_code may not be changed if there is already an inventory_line (in other company), so we remove it from the dict vals.pop('default_code',None) + if product_template['manufacturing_number']: + vals.pop('manufacturing_number',None) product_template.write(vals) else: if vals['active']: