From 975cc9ef397ad61080f262428fd74379b75cbdcb 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 bc61745fd56..472618197c7 100644 --- a/stock_inventory/models/stock_inventory.py +++ b/stock_inventory/models/stock_inventory.py @@ -11,6 +11,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, @@ -42,6 +45,7 @@ class InventoryAdjustmentsGroup(models.Model): ("cancel", "Cancelled"), ], 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 d0476cebcc7..ee7a906e69a 100644 --- a/stock_inventory/views/stock_inventory.xml +++ b/stock_inventory/views/stock_inventory.xml @@ -127,6 +127,10 @@ +
+ + +