修改设备table和跳转到维保 设备改为维保

This commit is contained in:
qihao.gong@jikimo.com
2023-08-21 10:27:50 +08:00
parent 43d6794151
commit 82322b5024
3 changed files with 8 additions and 3 deletions

View File

@@ -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