[FIX] stock_vertical_lift: skip button is only for pick operation

The button to skip an operation is only implemented for the pick
operation (not for the put or for the inventory ones) but it was
shown in the screens for all the operations, yielding to a stack
trace when it was pressed from the wrong operationg. The button
has been moved now to the screen for the pick operation, only.
This commit is contained in:
Carlos Serra-Toro
2021-02-19 17:19:09 +01:00
parent acdbb9a802
commit 8e94a0d266
2 changed files with 11 additions and 9 deletions

View File

@@ -65,15 +65,6 @@
</div>
<div class="o_shuttle_content o_shuttle_content_right">
<div>
<button
name="button_skip"
type="object"
string="Skip"
icon="fa-forward"
class="btn-danger"
barcode_trigger="skip"
attrs="{'invisible': [('state', '=', 'noop')]}"
/>
<!-- will react on barcode 'O-BTN.save' -->
<button
name="button_save"

View File

@@ -21,6 +21,17 @@
<form position="attributes">
<attribute name="string">Pick Screen</attribute>
</form>
<button name="button_save" position="before">
<button
name="button_skip"
type="object"
string="Skip"
icon="fa-forward"
class="btn-danger"
barcode_trigger="skip"
attrs="{'invisible': [('state', '=', 'noop')]}"
/>
</button>
</field>
</record>
</odoo>