修改设备table和跳转到维保 设备改为维保
This commit is contained in:
@@ -528,7 +528,6 @@ class MachineBrand(models.Model):
|
||||
brand.name = item['name'],
|
||||
brand.code = item['code'],
|
||||
brand.image_brand = '' if not item['image_brand'] else base64.b64encode(item.image_brand),
|
||||
brand.manufacturer_model_number = item['manufacturer_model_number'],
|
||||
brand.active = item['active'],
|
||||
brand.remark = item['remark'],
|
||||
else:
|
||||
@@ -537,7 +536,6 @@ class MachineBrand(models.Model):
|
||||
"name": item['name'],
|
||||
"code": item['code'],
|
||||
"image_brand": '' if not item['image_brand'] else base64.b64encode(item.image_brand),
|
||||
"manufacturer_model_number": item['manufacturer_model_number'],
|
||||
"active": item['active'],
|
||||
"remark": item['remark'],
|
||||
|
||||
@@ -567,7 +565,6 @@ class MachineBrand(models.Model):
|
||||
"name": item['name'],
|
||||
"code": item['code'],
|
||||
"remark": item['remark'],
|
||||
"manufacturer_model_number": item['manufacturer_model_number'],
|
||||
"image_brand": '' if not item['image_brand'] else base64.b64encode(item.image_brand),
|
||||
"tag_ids": self.env['sf.machine.brand.tags'].search(
|
||||
[("name", 'in', item['tag_ids'])]).ids
|
||||
|
||||
Reference in New Issue
Block a user