修改数控系统同步参数

This commit is contained in:
qihao.gong@jikimo.com
2023-08-15 14:21:41 +08:00
parent 1533ef7be9
commit abddb82f94

View File

@@ -451,11 +451,13 @@ class MachineControlSystem(models.Model):
brand.id = item['id'], brand.id = item['id'],
brand.name = item['name'], brand.name = item['name'],
brand.code = item['code'], brand.code = item['code'],
brand.remark = item['remark'],
brand.brand_id = self.env['sf.machine.brand'].search([('code', '=', item['brand_id'])]).id, brand.brand_id = self.env['sf.machine.brand'].search([('code', '=', item['brand_id'])]).id,
brand.active = item['active'] brand.active = item['active']
else: else:
self.env['sf.machine.control_system'].create({ self.env['sf.machine.control_system'].create({
"id": item['id'], "id": item['id'],
"remark": item['remark'],
"name": item['name'], "name": item['name'],
"code": item['code'], "code": item['code'],