去掉警告及开发表面工艺相关需求

This commit is contained in:
jinling.yang
2023-03-27 21:04:33 +08:00
parent 446bd04a9d
commit bf010e2cca
18 changed files with 89 additions and 72 deletions

View File

@@ -24,10 +24,10 @@ class ResConfigSettings(models.TransientModel):
_logger.info("同步资源库材料")
self.env['sf.materials.model'].sync_all_materials_model()
_logger.info("同步资源库材料型号")
self.env['sf.production.process'].sync_all_production_process()
_logger.info("同步资源库表面工艺")
self.env['sf.production.process.category'].sync_all_production_process_category()
_logger.info("同步资源库表面工艺类别")
self.env['sf.production.process'].sync_all_production_process()
_logger.info("同步资源库表面工艺")
self.env['sf.processing.technology'].sync_all_processing_technology()
_logger.info("同步资源库加工工艺")
self.env['sf.machine.brand.tags'].sync_all_machine_brand_tags()

View File

@@ -212,7 +212,7 @@ class sfProductionProcessCategory(models.Model):
for item in result['production_process_category_all_list']:
if item:
category = self.env['sf.production.process.category'].search(
[("process_encode", '=', item['process_encode'])])
[("code", '=', item['code'])])
if not category:
self.env['sf.production.process.category'].create({
"name": item['name'],