1、优化品牌同步接口,2、内部调拨作业详情添加Rfid字段;

This commit is contained in:
yuxianghui
2024-04-17 17:01:01 +08:00
parent 7897e6e55b
commit 22c388f52c
4 changed files with 12 additions and 2 deletions

View File

@@ -591,6 +591,7 @@ class MachineBrand(models.Model):
if not brand:
self.create({
"name": item['name'],
"active": item['active'],
"code": item['code'],
"remark": item['remark'],
"image_brand": '' if not item['image_brand'] else base64.b64decode(item['image_brand']),
@@ -599,6 +600,7 @@ class MachineBrand(models.Model):
})
else:
brand.name = item['name']
brand.active = item['active']
brand.remark = item['remark']
brand.image_brand = '' if not item['image_brand'] else base64.b64decode(item['image_brand'])
brand.tag_ids = self.env['sf.machine.brand.tags'].search(