[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
committed by Hai Lang
parent e1e417b5f7
commit f092b86092
4 changed files with 13 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
{ {
"name": "Vertical Lift", "name": "Vertical Lift",
"summary": "Provides the core for integration with Vertical Lifts", "summary": "Provides the core for integration with Vertical Lifts",
"version": "13.0.1.2.0", "version": "13.0.1.2.1",
"category": "Stock", "category": "Stock",
"author": "Camptocamp, Odoo Community Association (OCA)", "author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",

View File

@@ -598,7 +598,7 @@ msgid "Shuttle Name"
msgstr "" msgstr ""
#. module: stock_vertical_lift #. module: stock_vertical_lift
#: model_terms:ir.ui.view,arch_db:stock_vertical_lift.vertical_lift_operation_base_screen_view #: model_terms:ir.ui.view,arch_db:stock_vertical_lift.vertical_lift_operation_pick_screen_view
msgid "Skip" msgid "Skip"
msgstr "" msgstr ""

View File

@@ -65,15 +65,6 @@
</div> </div>
<div class="o_shuttle_content o_shuttle_content_right"> <div class="o_shuttle_content o_shuttle_content_right">
<div> <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' --> <!-- will react on barcode 'O-BTN.save' -->
<button <button
name="button_save" name="button_save"

View File

@@ -21,6 +21,17 @@
<form position="attributes"> <form position="attributes">
<attribute name="string">Pick Screen</attribute> <attribute name="string">Pick Screen</attribute>
</form> </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> </field>
</record> </record>
</odoo> </odoo>