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 #159726

X-original-commit: 3acb79b
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
  • Loading branch information
temo-odoo committed Apr 22, 2024
1 parent 167deda commit 0e270bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock/views/stock_location_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<field name="next_inventory_date" invisible="not active"/>
</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}" invisible="usage in ('supplier', 'customer', 'inventory', 'production') or scrap_location or usage == 'transit' and not company_id"/>
</group>
</group>
<field name="comment" placeholder="External note..."/>
Expand Down

0 comments on commit 0e270bb

Please sign in to comment.