From be31060d1caa82f4023bcdd21a4290b376211855 Mon Sep 17 00:00:00 2001 From: Benjamin Willig Date: Wed, 7 Feb 2024 16:43:25 +0100 Subject: [PATCH] =?UTF-8?q?[AD=C3=90]=20add=20mail.thread=20on=20stock.inv?= =?UTF-8?q?entory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stock_inventory/models/stock_inventory.py | 4 ++++ stock_inventory/views/stock_inventory.xml | 4 ++++ 2 files changed, 8 insertions(+) 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 @@ +
+ + +