品牌备注

This commit is contained in:
qihao.gong@jikimo.com
2023-08-18 14:31:28 +08:00
parent 422698ce34
commit c924426725
3 changed files with 8 additions and 6 deletions

View File

@@ -529,7 +529,8 @@ class MachineBrand(models.Model):
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.active = item['active'],
brand.remark = item['remark'],
else:
self.env['sf.machine.brand'].create({
"id": item['id'],
@@ -538,6 +539,7 @@ class MachineBrand(models.Model):
"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'],
})
else:
@@ -564,6 +566,7 @@ class MachineBrand(models.Model):
"id": item['id'],
"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(