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)]}, )