1、优化组装单扫描验证物料方法;2、对组装单物料批次进行调整,删除部分字段和方法;优化获取BOM并自动初始化物料数据方法;3、货位批次模型新增物料字段,新增tree视图,并且除刀柄外物料点击【更多】时跳转至不同的货位批次模型tree视图;4、添加刀柄和其他物料在点击【更多】按钮后选取新物料点击【确认】后回填物料信息到组装单并给出提示信息;5、添加组装物料信息校验功能,初始化或重新选取物料后需进行验证才能进行组装;6、组装单form视图布局调整;
This commit is contained in:
@@ -11,4 +11,131 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tool_product_tree" model="ir.ui.view">
|
||||
<field name="name">刀柄</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" export_xlsx="0" delete="0">
|
||||
<header>
|
||||
<button string="确认" name="set_tool_material" type="object"
|
||||
class="treeHeaderBtn"/>
|
||||
</header>
|
||||
<field name="name"/>
|
||||
<field name="cutting_tool_type_id"/>
|
||||
<field name="cutting_tool_model_id"/>
|
||||
<field name="specification_id"/>
|
||||
<field name="cutting_tool_shank_length"/>
|
||||
<field name="cutting_tool_taper_shank_model"/>
|
||||
<field name="brand_id"/>
|
||||
<field name="qty_available" string="数量"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tool_product_search" model="ir.ui.view">
|
||||
<field name="model">product.product</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_shelf_location_lot_tree_1" model="ir.ui.view">
|
||||
<field name="name">sf.shelf.location.lot.tree</field>
|
||||
<field name="model">sf.shelf.location.lot</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" export_xlsx="0" delete="0">
|
||||
<header>
|
||||
<button string="确认" name="set_tool_material" type="object"
|
||||
class="treeHeaderBtn"/>
|
||||
</header>
|
||||
<field name="product_id"/>
|
||||
<field name="cutting_tool_type_id"/>
|
||||
<field name="cutting_tool_model_id"/>
|
||||
<field name="specification_id"/>
|
||||
|
||||
<field name="cutting_tool_blade_diameter"/>
|
||||
<field name="cutting_tool_blade_tip_working_size"/>
|
||||
|
||||
<field name="brand_id"/>
|
||||
<field name="shelf_location_id"/>
|
||||
<field name="lot_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_shelf_location_lot_tree_2" model="ir.ui.view">
|
||||
<field name="name">sf.shelf.location.lot.tree</field>
|
||||
<field name="model">sf.shelf.location.lot</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" export_xlsx="0" delete="0">
|
||||
<header>
|
||||
<button string="确认" name="set_tool_material" type="object"
|
||||
class="treeHeaderBtn"/>
|
||||
</header>
|
||||
<field name="product_id"/>
|
||||
<field name="cutting_tool_type_id"/>
|
||||
<field name="cutting_tool_model_id"/>
|
||||
<field name="specification_id"/>
|
||||
|
||||
<field name="fit_blade_shape_id"/>
|
||||
<field name="cutting_tool_blade_radius"/>
|
||||
|
||||
<field name="brand_id"/>
|
||||
<field name="shelf_location_id"/>
|
||||
<field name="lot_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="view_shelf_location_lot_tree_3" model="ir.ui.view">
|
||||
<field name="name">sf.shelf.location.lot.tree</field>
|
||||
<field name="model">sf.shelf.location.lot</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" export_xlsx="0" delete="0">
|
||||
<header>
|
||||
<button string="确认" name="set_tool_material" type="object"
|
||||
class="treeHeaderBtn"/>
|
||||
</header>
|
||||
<field name="product_id"/>
|
||||
<field name="cutting_tool_type_id"/>
|
||||
<field name="cutting_tool_model_id"/>
|
||||
<field name="specification_id"/>
|
||||
|
||||
<field name="cutting_tool_cutter_arbor_diameter"/>
|
||||
<field name="fit_blade_shape_id"/>
|
||||
|
||||
<field name="brand_id"/>
|
||||
<field name="shelf_location_id"/>
|
||||
<field name="lot_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_shelf_location_lot_tree_4" model="ir.ui.view">
|
||||
<field name="name">sf.shelf.location.lot.tree</field>
|
||||
<field name="model">sf.shelf.location.lot</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" export_xlsx="0" delete="0">
|
||||
<header>
|
||||
<button string="确认" name="set_tool_material" type="object"
|
||||
class="treeHeaderBtn"/>
|
||||
</header>
|
||||
<field name="product_id"/>
|
||||
<field name="cutting_tool_type_id"/>
|
||||
<field name="cutting_tool_model_id"/>
|
||||
<field name="specification_id"/>
|
||||
|
||||
<field name="cutting_tool_cutter_head_diameter"/>
|
||||
<field name="fit_blade_shape_id"/>
|
||||
|
||||
<field name="brand_id"/>
|
||||
<field name="shelf_location_id"/>
|
||||
<field name="lot_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user