Skip to content
Snippets Groups Projects
Commit 7c330b44 authored by William Henrotin's avatar William Henrotin
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 odoo/odoo#40933

Opw: 2125124
X-original-commit: 7f07d07c3559cb2885a192fa2210d9673612c246
Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 87261039
No related branches found
No related tags found
No related merge requests found
......@@ -429,7 +429,7 @@ class ProductTemplate(models.Model):
responsible_id = fields.Many2one(
'res.users', string='Responsible', default=lambda self: self.env.uid, required=True,
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')], track_visibility='onchange')
property_stock_production = fields.Many2one(
'stock.location', "Production Location",
company_dependent=True, domain=[('usage', 'like', 'production')],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment