1、货位看板模型添加货位变更弹窗模块及其功能按钮,实现产品在同库区的内部货位移动;

This commit is contained in:
yuxianghui
2024-04-19 10:49:48 +08:00
parent 67f3c312de
commit b43c3496a1
8 changed files with 135 additions and 11 deletions

View File

@@ -128,7 +128,17 @@
<field name="arch" type="xml">
<form string="Shelf Location" create="0">
<header>
<button string="货位变更"
name="%(sf_warehouse.sf_shelf_location_wizard_act)d"
type="action"
context="{'default_name':name,
'default_current_name':name,
'default_current_shelf_id':shelf_id,
'default_current_location_id':location_id,
'default_current_barcode':barcode,
'default_current_product_id':product_id,
}"
class="btn-primary"/>
<field name="location_status" invisible="1"/>
<button string="禁用货位" name="action_location_status_disable" type="object"
class="oe_highlight"
@@ -155,11 +165,11 @@
</button>
</div>
<group>
<field name="barcode"/>
<field name="name"/>
<field name="shelf_id"/>
<field name="location_id"/>
<field name="product_sn_id"/>
<field name="barcode" readonly="1"/>
<field name="name" readonly="1"/>
<field name="shelf_id" readonly="1"/>
<field name="location_id" readonly="1"/>
<field name="product_sn_id" options="{'no_create': True}"/>
<field name="product_id"/>
<field name="product_num" readonly="1"/>
<field name="location_status"/>