Skip to content
Permalink
Browse files

[IMP] stock: track changes on type

Changing a product type from consumable to storable and and vice versa can
make the quantity in stock confusing. As only storable product update the
stock quants, the amount on stock moves could be diffenrent that the one
on stock quant if the product type has been changed in the past.

This commit will make those changes saved in the chatter history in order
to easily track inconsistencies

closes #40994

Opw: 2125124
X-original-commit: 7c330b4
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
  • Loading branch information
Whenrow committed Dec 2, 2019
1 parent 11de878 commit 738cefb78f5dd1a63f499429ebcbc0537302ee84
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/stock/models/product.py
@@ -459,7 +459,7 @@ class ProductTemplate(models.Model):
responsible_id = fields.Many2one(
'res.users', string='Responsible', default=lambda self: self.env.uid,
help="This user will be responsible of the next activities related to logistic operations for this product.")
type = fields.Selection(selection_add=[('product', 'Storable Product')])
type = fields.Selection(selection_add=[('product', 'Storable Product')], tracking=True)
property_stock_production = fields.Many2one(
'stock.location', "Production Location",
company_dependent=True, domain=[('usage', 'like', 'production')],

0 comments on commit 738cefb

Please sign in to comment.
You can’t perform that action at this time.