品牌备注
This commit is contained in:
@@ -45,13 +45,13 @@ class ResConfigSettings(models.TransientModel):
|
||||
self.env['sf.cutting.tool.material'].sync_all_cutting_tool_material()
|
||||
_logger.info("同步所有刀具物料完成")
|
||||
_logger.info("同步所有刀具类型...")
|
||||
self.env['sf.cutting.tool.type'].sync_all_tool_type()
|
||||
_logger.info("同步所有刀具类型完成")
|
||||
# self.env['sf.cutting.tool.type'].sync_all_tool_type()
|
||||
# _logger.info("同步所有刀具类型完成")
|
||||
_logger.info("定时同步所有功能刀具类型列表...")
|
||||
self.env['sf.functional.cutting.tool.model'].sync_all_functional_cutting_tool_model()
|
||||
_logger.info("同步所有功能刀具类型完成")
|
||||
_logger.info("同步所有刀具型号...")
|
||||
self.env['sf.cutting.tool.model'].sync_all_tool_model()
|
||||
# self.env['sf.cutting.tool.model'].sync_all_tool_model()
|
||||
_logger.info("同步所有刀具型号完成")
|
||||
_logger.info("同步所有功能刀具列表...")
|
||||
self.env['sf.functional.cutting.tool'].sync_all_functional_cutting_tool()
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user