1.修复编程状态字段类型2.优化工单rfid排放位置
This commit is contained in:
@@ -53,7 +53,8 @@ class MrpProduction(models.Model):
|
|||||||
active = fields.Boolean(string='已归档', default=True)
|
active = fields.Boolean(string='已归档', default=True)
|
||||||
programming_no = fields.Char('编程单号')
|
programming_no = fields.Char('编程单号')
|
||||||
work_state = fields.Char('业务状态')
|
work_state = fields.Char('业务状态')
|
||||||
programming_state = fields.Char('编程状态', tracking=True)
|
programming_state = fields.Selection(
|
||||||
|
[('编程中', '编程中'), ('已编程', '已编程')], string='编程状态', tracking=True)
|
||||||
glb_file = fields.Binary("glb模型文件")
|
glb_file = fields.Binary("glb模型文件")
|
||||||
production_line_id = fields.Many2one('sf.production.line', string='生产线', tracking=True)
|
production_line_id = fields.Many2one('sf.production.line', string='生产线', tracking=True)
|
||||||
plan_start_processing_time = fields.Datetime('计划开始加工时间')
|
plan_start_processing_time = fields.Datetime('计划开始加工时间')
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<field name="programming_no" readonly="1"/>
|
<field name="programming_no" readonly="1"/>
|
||||||
<field name="work_state" invisible="1"/>
|
<field name="work_state" invisible="1"/>
|
||||||
<field name="schedule_state" invisible='1'/>
|
<field name="schedule_state" invisible='1'/>
|
||||||
<field name="programming_state" readonly="1"/>
|
<field name="programming_state" readonly="1" options="{'classes': { '编程中':'primary','已编程':'warning'}}"/>
|
||||||
<field name="manual_quotation" readonly="1"/>
|
<field name="manual_quotation" readonly="1"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='user_id']" position="before">
|
<xpath expr="//field[@name='user_id']" position="before">
|
||||||
|
|||||||
@@ -185,6 +185,9 @@
|
|||||||
<xpath expr="//label[1]" position="before">
|
<xpath expr="//label[1]" position="before">
|
||||||
<field name='routing_type' readonly="1"/>
|
<field name='routing_type' readonly="1"/>
|
||||||
<field name='process_state' attrs='{"invisible": [("routing_type","!=","装夹预调")]}'/>
|
<field name='process_state' attrs='{"invisible": [("routing_type","!=","装夹预调")]}'/>
|
||||||
|
<field name="rfid_code" force_save="1" readonly="1" cache="True"
|
||||||
|
attrs="{'invisible': [('rfid_code_old', '!=', False)]}"/>
|
||||||
|
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//label[1]" position="attributes">
|
<xpath expr="//label[1]" position="attributes">
|
||||||
<attribute name="string">计划加工时间</attribute>
|
<attribute name="string">计划加工时间</attribute>
|
||||||
@@ -239,23 +242,6 @@
|
|||||||
<!-- <field name="processing_panel" readonly="1" attrs="{'invisible': [('routing_type', 'in', ('获取CNC加工程序','装夹','解除装夹',-->
|
<!-- <field name="processing_panel" readonly="1" attrs="{'invisible': [('routing_type', 'in', ('获取CNC加工程序','装夹','解除装夹',-->
|
||||||
<!-- '前置三元定位检测','后置三元质量检测','解除装夹'))]}"/>-->
|
<!-- '前置三元定位检测','后置三元质量检测','解除装夹'))]}"/>-->
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<xpath expr="//page[1]" position="before">
|
|
||||||
<page string="获取CNC加工程序" attrs='{"invisible": [("routing_type","!=","获取CNC加工程序")]}'>
|
|
||||||
<group>
|
|
||||||
<field name="programming_no" readonly="1"
|
|
||||||
attrs='{"invisible": [("programming_no","=",False)]}'/>
|
|
||||||
<field name="programming_state" readonly="1"
|
|
||||||
attrs='{"invisible": [("programming_no","=",False)]}'/>
|
|
||||||
</group>
|
|
||||||
<!-- <group>-->
|
|
||||||
<!-- <div class="col-12 col-lg-6 o_setting_box" style="white-space: nowrap">-->
|
|
||||||
<!-- <button type="object" class="oe_highlight" name="fetchCNC" string="获取CNC程序代码"-->
|
|
||||||
<!-- />-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- </group>-->
|
|
||||||
</page>
|
|
||||||
</xpath>
|
|
||||||
<!-- <page string="Components" name="components">-->
|
<!-- <page string="Components" name="components">-->
|
||||||
<xpath expr="//page[1]" position="before">
|
<xpath expr="//page[1]" position="before">
|
||||||
<!-- <page string="装夹托盘" attrs='{"invisible": [("routing_type","!=","装夹")]}'>-->
|
<!-- <page string="装夹托盘" attrs='{"invisible": [("routing_type","!=","装夹")]}'>-->
|
||||||
@@ -589,9 +575,6 @@
|
|||||||
<field name="material_height" class="o_address_zip"/>
|
<field name="material_height" class="o_address_zip"/>
|
||||||
</div>
|
</div>
|
||||||
<field name="part_number" string="成品的零件图号"/>
|
<field name="part_number" string="成品的零件图号"/>
|
||||||
<field name="rfid_code" force_save="1" readonly="1" cache="True"
|
|
||||||
attrs="{'invisible': [('rfid_code_old', '!=', False)]}"/>
|
|
||||||
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user