diff --git a/sf_base/views/base_view.xml b/sf_base/views/base_view.xml index 6c4f9660..fe462908 100644 --- a/sf_base/views/base_view.xml +++ b/sf_base/views/base_view.xml @@ -25,7 +25,7 @@ tree.sf.machine.brand sf.machine.brand - + @@ -38,7 +38,7 @@ form.sf.machine.brand sf.machine.brand -
+ tree.sf.machine_tool.type sf.machine_tool.type - + @@ -103,7 +103,7 @@ form.sf.machine_tool.type sf.machine_tool.type - +

@@ -278,7 +278,7 @@ tree.sf.machine_tool.category sf.machine_tool.category - + @@ -485,7 +485,7 @@ tree.sf.machine.control_system sf.machine.control_system - + diff --git a/sf_base/views/common_view.xml b/sf_base/views/common_view.xml index e340650f..492a3b4e 100644 --- a/sf_base/views/common_view.xml +++ b/sf_base/views/common_view.xml @@ -23,7 +23,7 @@ sf.processing.technology - + @@ -45,7 +45,7 @@ sf.production.process.category - +

@@ -80,7 +80,7 @@ sf.production.process.category - + @@ -104,7 +104,7 @@ sf.production.process - + @@ -115,7 +115,7 @@ sf.production.process - +

@@ -195,7 +195,7 @@ sf.materials.model - +

@@ -238,7 +238,7 @@ sf.materials.model - + @@ -266,7 +266,7 @@ sf.production.materials - +

@@ -302,7 +302,7 @@ sf.production.materials - + diff --git a/sf_base/views/fixture_view.xml b/sf_base/views/fixture_view.xml index 153c0f91..6a402681 100644 --- a/sf_base/views/fixture_view.xml +++ b/sf_base/views/fixture_view.xml @@ -22,7 +22,7 @@ 夹具物料 sf.fixture.material - + @@ -87,7 +87,7 @@ 联装类型 sf.multi_mounting.type - + diff --git a/sf_base/views/functional_fixture_view.xml b/sf_base/views/functional_fixture_view.xml index 5a5c0405..e366f701 100644 --- a/sf_base/views/functional_fixture_view.xml +++ b/sf_base/views/functional_fixture_view.xml @@ -23,7 +23,7 @@ 功能夹具类型 sf.functional.fixture.type - + diff --git a/sf_base/views/tool_views.xml b/sf_base/views/tool_views.xml index 62f8c9c3..5b78270d 100644 --- a/sf_base/views/tool_views.xml +++ b/sf_base/views/tool_views.xml @@ -6,7 +6,7 @@ sf.cutting.tool.material.tree sf.cutting.tool.material - + @@ -153,7 +153,7 @@ sf.cutter.function.tree sf.functional.cutting.tool.model - + @@ -198,7 +198,7 @@ sf.cutting.tool.model.tree sf.cutting.tool.model - + @@ -210,7 +210,7 @@ sf.cutting.tool.model.form sf.cutting.tool.model - +

@@ -345,7 +345,7 @@ sf.cutting.tool.type.tree sf.cutting.tool.type - + diff --git a/sf_mrs_connect/models/res_config_setting.py b/sf_mrs_connect/models/res_config_setting.py index 4c3002e0..699b1bff 100644 --- a/sf_mrs_connect/models/res_config_setting.py +++ b/sf_mrs_connect/models/res_config_setting.py @@ -36,7 +36,6 @@ class ResConfigSettings(models.TransientModel): _logger.info("同步资源库品牌") self.env['sf.machine.control_system'].sync_all_machine_tool_type_control_system() _logger.info("同步资源库控制系统") - self.env['sf.machine_tool.category'].sync_all_machine_tool_category() _logger.info("同步资源库机床类型") # self.env['sf.production.process.parameter'].sync_all_production_process_parameter() @@ -45,35 +44,26 @@ 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.cutting.tool.model'].sync_all_tool_model() + _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() - _logger.info("同步所有刀具型号完成") - _logger.info("同步所有功能刀具列表...") - self.env['sf.functional.cutting.tool'].sync_all_functional_cutting_tool() - _logger.info("同步所有功能刀具列表完成") + # _logger.info("同步所有功能刀具列表...") + # self.env['sf.functional.cutting.tool'].sync_all_functional_cutting_tool() + # _logger.info("同步所有功能刀具列表完成") self.env['sf.fixture.material'].sync_all_fixture_material() _logger.info("同步夹具物料") self.env['sf.multi_mounting.type'].sync_all_multi_mounting_type() _logger.info("同步联装类型") - # self.env['sf.fixture.model'].sync_all_fixture_model() - # _logger.info("同步夹具型号") + self.env['sf.fixture.model'].sync_all_fixture_model() + _logger.info("同步夹具型号") self.env['sf.functional.fixture.type'].sync_all_functional_fixture_type() _logger.info("同步功能夹具类型") - # self.env['sf.functional.fixture'].sync_all_functional_fixture() - # self.env['sf.multi_mounting.type'].sync_all_multi_mounting_type() - # _logger.info("同步联装类型") - # self.env['sf.fixture.model'].sync_all_fixture_model() - # _logger.info("同步夹具型号") - # self.env['sf.functional.fixture.type'].sync_all_functional_fixture_type() - # _logger.info("同步功能夹具类型") - # self.env['sf.functional.fixture'].sync_all_functional_fixture() - # _logger.info("同步功能夹具") - self.env['sf.machine_tool.type'].sync_all_machine_tool_type() + self.env['sf.functional.fixture'].sync_all_functional_fixture() _logger.info("同步资源库机床型号") except Exception as e: _logger.info("捕获错误信息:%s" % e)