1、优化品牌同步接口,2、内部调拨作业详情添加Rfid字段;
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user