From 9cf15064d263263b8472da0ba97d94abd210c38e Mon Sep 17 00:00:00 2001 From: alec000inspired <61957480+alec000inspired@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:04:40 +1100 Subject: [PATCH] [17.0] [FIX] stock_inventory: remove invalid states attribute on responsible_id stock.inventory.responsible_id.states is no longer supported. The form view is the only opportunity for this field to be edited and it already has `readonly="state != 'draft'"` see (https://github.com/OCA/stock-logistics-warehouse/blob/17.0/stock_inventory/views/stock_inventory.xml#L105) --- stock_inventory/models/stock_inventory.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stock_inventory/models/stock_inventory.py b/stock_inventory/models/stock_inventory.py index 96b2b84cf9b5..47c1062ae8a9 100644 --- a/stock_inventory/models/stock_inventory.py +++ b/stock_inventory/models/stock_inventory.py @@ -127,7 +127,6 @@ class InventoryAdjustmentsGroup(models.Model): responsible_id = fields.Many2one( comodel_name="res.users", string="Assigned to", - states={"draft": [("readonly", False)]}, readonly=True, help="Specific responsible of Inventory Adjustment.", )