Skip to content

Commit

Permalink
[FIX] stock_inventory_preparation_filter: update invisible field corr…
Browse files Browse the repository at this point in the history
…ectly.
  • Loading branch information
DavidJForgeFlow committed May 7, 2024
1 parent f665f1e commit ff42d49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit ff42d49

Please sign in to comment.