diff --git a/stock_inventory/models/stock_inventory.py b/stock_inventory/models/stock_inventory.py index e67e6fa4930d..e9d380f240b3 100644 --- a/stock_inventory/models/stock_inventory.py +++ b/stock_inventory/models/stock_inventory.py @@ -7,6 +7,9 @@ class InventoryAdjustmentsGroup(models.Model): _name = "stock.inventory" _description = "Inventory Adjustment Group" _order = "date desc, id desc" + _inherit = [ + "mail.thread", + ] name = fields.Char(required=True, default="Inventory", string="Inventory Reference") @@ -15,6 +18,7 @@ class InventoryAdjustmentsGroup(models.Model): state = fields.Selection( [("draft", "Draft"), ("in_progress", "In Progress"), ("done", "Done")], default="draft", + tracking=True, ) owner_id = fields.Many2one( diff --git a/stock_inventory/views/stock_inventory.xml b/stock_inventory/views/stock_inventory.xml index 8093595039a4..4ea0462c8ea0 100644 --- a/stock_inventory/views/stock_inventory.xml +++ b/stock_inventory/views/stock_inventory.xml @@ -113,6 +113,10 @@ +
+ + +