Skip to content

Commit

Permalink
[IMP] Display button to change location for multiple location group o…
Browse files Browse the repository at this point in the history
…nly + display the button on stock move line tab when this tab is visible
  • Loading branch information
florian-dacosta committed Apr 12, 2024
1 parent 4f3af07 commit 1cf38fe
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@
name="%(action_stock_picking_operation_change_location)d"
type="action"
string="Change Location"
groups="stock.group_stock_user"
groups="stock.group_stock_multi_locations"
attrs="{'invisible': [('show_operations', '=', True)]}"
>
</button>
</xpath>
<xpath expr="//field[@name='move_line_nosuggest_ids']" position="before">
<button
name="%(action_stock_picking_operation_change_location)d"
type="action"
string="Change Location"
groups="stock.group_stock_multi_locations"
attrs="{'invisible': [('show_operations', '=', False)]}"
>
</button>
</xpath>
Expand Down

0 comments on commit 1cf38fe

Please sign in to comment.