49 lines
2.5 KiB
XML
49 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="sf_shelf_location_wizard_form" model="ir.ui.view">
|
|
<field name="name">货位变更</field>
|
|
<field name="model">sf.shelf.location.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="货位变更">
|
|
<sheet>
|
|
<group>
|
|
<group string="初始货位">
|
|
<group>
|
|
<field name="current_location_id"/>
|
|
<field name="current_shelf_id" string="货架"/>
|
|
<field name="current_barcode" string="编码"/>
|
|
<field name="current_name" string="名称"/>
|
|
</group>
|
|
</group>
|
|
<group string="目标货位">
|
|
<group>
|
|
<field name="current_location_id"/>
|
|
<field name="destination_shelf_id" string="货架" options="{'no_create': True}"
|
|
placeholder="请选择目标货架"/>
|
|
<field name="destination_barcode_id" string="编码" options="{'no_create': True}"
|
|
placeholder="请选择目标货位"
|
|
domain="['|', ('location_status', '=', '空闲'), ('product_id', '=', current_product_id)]"/>
|
|
<field name="destination_name" string="名称"/>
|
|
<field name="current_product_id" invisible="1"/>
|
|
</group>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button string="确定" name="confirm_the_change" type="object" class="btn-primary"
|
|
confirm="是否确认变更货位"/>
|
|
<button string="取消" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sf_shelf_location_wizard_act" model="ir.actions.act_window">
|
|
<field name="name">货位变更</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sf.shelf.location.wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="sf_shelf_location_wizard_form"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
</odoo> |