Accept Merge Request #315: (feature/修改设备模块 -> develop)

Merge Request: 修改控制系统同步接口

Created By: @龚启豪
Accepted By: @龚启豪
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/315?initial=true
This commit is contained in:
龚启豪
2023-08-15 14:26:34 +08:00
committed by Coding

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'],