Files
stock-logistics-warehouse/stock_vertical_lift/views/stock_location_views.xml
Guewen Baconnier c58d60a26d Add release (close) of vertical lift trays
* Rename methods that fetch a tray to prevent confusion
* Add methods to release a tray
* The Kardex method to fetch a tray has to send "0" in the carrier and
  carrierNext field
* The pick and inventory screens release the tray only when there is no next
  line, because the release is implicit when we fetch the next line,
  the put screen releases everytime because the operator may take time
  to start the next line and we don't know if they are going to scan a
  next line or not.
* Exiting the screen or switching screen between put/pick/put-away has
  to release the tray as well.
2021-09-16 20:17:33 +07:00

59 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_location_form" model="ir.ui.view">
<field name="name">stock.location.form.vertical.lift</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock_location_tray.view_location_form" />
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button
name="button_fetch_vertical_lift_tray"
string="Fetch Shuttle Tray"
type="object"
groups="stock.group_stock_manager"
class="oe_stat_button"
icon="fa-hand-paper-o"
attrs="{'invisible': [('vertical_lift_kind', 'not in', ('tray', 'cell'))]}"
/>
<button
name="button_release_vertical_lift_tray"
string="Release Shuttle Tray"
type="object"
groups="stock.group_stock_manager"
class="oe_stat_button"
icon="fa-hand-rock-o"
attrs="{'invisible': [('vertical_lift_kind', 'not in', ('tray', 'cell'))]}"
/>
</div>
<field name="return_location" position="after">
<field
name="vertical_lift_location"
attrs="{'invisible': [('vertical_lift_kind', '!=', False), ('vertical_lift_kind', '!=', 'view')]}"
/>
<field name="vertical_lift_kind" />
<field
name="vertical_lift_shuttle_id"
attrs="{'invisible': [('vertical_lift_kind', 'not in', ('shuttle', 'tray', 'cell'))]}"
/>
</field>
<field name="tray_type_id" position="attributes">
<attribute name="attrs">
{'invisible': [('cell_in_tray_type_id', '!=', False)],
'required': [('vertical_lift_kind', '=', 'tray')]}
</attribute>
</field>
</field>
</record>
<record id="view_location_search" model="ir.ui.view">
<field name="name">stock.location.search.vertical.lift</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock_location_tray.view_location_search" />
<field name="arch" type="xml">
<field name="tray_type_id" position="after">
<field name="vertical_lift_kind" />
<field name="vertical_lift_shuttle_id" />
</field>
</field>
</record>
</odoo>