修改设备模块布局

This commit is contained in:
qihao.gong@jikimo.com
2023-07-25 17:27:11 +08:00
parent 65157e93a9
commit f246827d3d
4 changed files with 77 additions and 35 deletions

View File

@@ -94,8 +94,9 @@ class SfMaintenanceEquipment(models.Model):
control_system_id = fields.Many2one('sf.machine.control_system',
string="控制系统")
# 多个机床型号对应一个机床
type_id = fields.Many2one('sf.machine_tool.type', '型号')
brand_id = fields.Many2one('sf.machine.brand', string='品牌')
type_id = fields.Many2one('sf.machine_tool.type', '型号')
state = fields.Selection(
[("正常", "正常"), ("故障", "故障"), ("不可用", "不可用")],
default='正常', string="机床状态")
@@ -420,7 +421,6 @@ class SfMaintenanceEquipment(models.Model):
'company_id': self.company_id.id or self.env.company.id,
'equipment_maintenance_id': self.eq_maintenance_id.id,
'sf_maintenance_type': '保养'
}
# 拼接维保请求字符串