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

[16.0][FIX] stock_inventory_preparation_filter: update invisible field correctly. #2024

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stock_inventory_preparation_filter/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Extended Inventory Preparation Filters",
"version": "16.0.1.0.0",
"depends": ["stock", "stock_inventory"],
"depends": ["stock", "stock_inventory", "base_view_inheritance_extension"],
"author": "AvanzOSC," "Tecnativa," "Odoo Community Association (OCA)",
"category": "Inventory, Logistic, Storage",
"website": "https://github.com/OCA/stock-logistics-warehouse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock_inventory.view_inventory_group_form" />
<field name="arch" type="xml">
<field name="product_ids" position="attributes">
<attribute
name="attrs"
>{'invisible': [('product_selection', '!=', 'all')]}</attribute>
</field>
<xpath expr="//field[@name='owner_id']/../.." position="after">
<group name="preparation_filter">
<group name="preparation_filter_right">
Expand All @@ -21,6 +16,11 @@
</group>
</group>
</xpath>
<field name="product_ids" position="attributes">
<attribute name="attrs" operation="update">
{'invisible': [('product_selection', 'in', ['all', 'category', 'one', 'domain'])]}
</attribute>
</field>

</field>
</record>
Expand Down
Loading