Skip to content

Commit

Permalink
[IMP] stock: added attrs in removal strategy field
Browse files Browse the repository at this point in the history
In this commit:
==================
Invisible the 'Removal strategy' field when selecting the other
location type except Internal location.

task-3555853

closes #154117

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
  • Loading branch information
temo-odoo committed Mar 15, 2024
1 parent 20e59d9 commit f24a77d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/stock/views/stock_location_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
<field name="next_inventory_date" attrs="{'invisible': [('active', '=', False)]}"/>
</group>
<group string="Logistics" groups="stock.group_adv_location">
<field name="removal_strategy_id" options="{'no_create': True}"/>
<field name="removal_strategy_id" options="{'no_create': True}"
attrs="{'invisible': ['|', '|', ('usage', 'in', ('supplier', 'customer', 'inventory', 'production')), ('scrap_location', '=', True), '&amp;', ('usage', '=', 'transit'), ('company_id', '=', False)]}"/>
</group>
</group>
<field name="comment" placeholder="External note..."/>
Expand Down

0 comments on commit f24a77d

Please sign in to comment.