Skip to content

Commit

Permalink
[17.0] [FIX] stock_inventory: remove invalid states attribute on resp…
Browse files Browse the repository at this point in the history
…onsible_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)
  • Loading branch information
alec000inspired authored Dec 5, 2024
1 parent 583c66a commit 9cf1506
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stock_inventory/models/stock_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
Expand Down

0 comments on commit 9cf1506

Please sign in to comment.