工单优化

This commit is contained in:
gqh
2023-01-09 20:40:27 +08:00
parent 1dcc15802a
commit d0497aa043
20 changed files with 320 additions and 458 deletions

View File

@@ -77,7 +77,7 @@ class MachineTool(models.Model):
b_axis = fields.Integer('B轴')
c_axis = fields.Integer('C轴')
remark = fields.Text('备注')
is_binding = fields.Boolean('是否绑定工作中心', default=False)
is_binding = fields.Boolean('是否绑定机床', default=False)
precision = fields.Float('加工精度')
control_system_id = fields.Many2one('sf.machine.control_system',
string="控制系统")

View File

@@ -359,7 +359,7 @@
<field name="arch" type="xml">
<form string="机床">
<header>
<button type="object" class="oe_highlight" name='enroll_machine_tool' string="机床注册"/>
<button type="object" class="oe_highlight" name='enroll_machine_tool' string="机床注册" attrs="{'invisible': [('code','!=',False)]}"/>
</header>
<group string="基本信息">
<group>