From b99f105af500e2626398021a9faed19f48dfdddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Alix?= Date: Thu, 7 Oct 2021 17:26:57 +0200 Subject: [PATCH] [FIX] s_inventory_exclude_sublocation: fix tracking on field --- stock_inventory_exclude_sublocation/models/stock_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_inventory_exclude_sublocation/models/stock_inventory.py b/stock_inventory_exclude_sublocation/models/stock_inventory.py index 708637769..bb8b9d6e4 100644 --- a/stock_inventory_exclude_sublocation/models/stock_inventory.py +++ b/stock_inventory_exclude_sublocation/models/stock_inventory.py @@ -11,7 +11,7 @@ class Inventory(models.Model): exclude_sublocation = fields.Boolean( string="Exclude Sublocations", default=False, - track_visibility="onchange", + tracking=True, readonly=True, states={"draft": [("readonly", False)]}, )