Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0] [FIX] stock_inventory: remove invalid states attribute on resp… #2215

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

alec000inspired
Copy link

…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)

…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)
@@ -127,7 +127,6 @@ class InventoryAdjustmentsGroup(models.Model):
responsible_id = fields.Many2one(
comodel_name="res.users",
string="Assigned to",
states={"draft": [("readonly", False)]},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has influence on imports. So, you cannot change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants