1、优化功能刀具安全库存数量计算方法;2、货位看板模型添加功能刀具Rfid、名称字段

This commit is contained in:
yuxianghui
2024-06-14 15:00:30 +08:00
parent 642877ff45
commit a86ceb951b
6 changed files with 176 additions and 123 deletions

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_shelf_location_tool" model="ir.ui.view">
<field name="name">sf.shelf.location.form.tool</field>
<field name="model">sf.shelf.location</field>
<field name="inherit_id" ref="sf_warehouse.view_shelf_location_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="tool_rfid" attrs="{'invisible': [('tool_rfid','=',False)]}"/>
<field name="tool_name_id" attrs="{'invisible': [('tool_name_id','=',False)]}"/>
</xpath>
</field>
</record>
</odoo>