代码规范

This commit is contained in:
qihao.gong@jikimo.com
2023-11-24 10:30:33 +08:00
parent b73a449b01
commit deb732dc5e
6 changed files with 8 additions and 12 deletions

View File

@@ -65,8 +65,8 @@ class SfMaintenanceEquipment(models.Model):
MTcode = fields.Char("机台编码", default=get_no)
created_user = fields.Many2one('res.users', string='创建人', default=lambda self: self.env.user)
equipment_type = fields.Selection([('机床', '机床'), ('机器人', '机器人'), ('AGV小车', 'AGV小车'), ('检测设备', '检测设备')]
, compute='_compute_category_id')
equipment_type = fields.Selection([('机床', '机床'), ('机器人', '机器人'), ('AGV小车', 'AGV小车'),
('检测设备', '检测设备')], compute='_compute_category_id')
@api.depends('category_id')
def _compute_category_id(self):