Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/优化agv和ftp
# Conflicts: # sf_manufacturing/models/mrp_production.py # sf_manufacturing/models/mrp_workorder.py # sf_mrs_connect/models/ftp_operate.py # sf_sale/models/quick_easy_order_old.py
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