From 53a676bc93cbf6e74b55ff2a7adcfc2e2dd6fdfb Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Tue, 22 Apr 2025 14:22:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_dlm_management/models/sf_production_common.py | 2 +- sf_manufacturing/wizard/process_outsourcing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_dlm_management/models/sf_production_common.py b/sf_dlm_management/models/sf_production_common.py index 4860db41..637aeb26 100644 --- a/sf_dlm_management/models/sf_production_common.py +++ b/sf_dlm_management/models/sf_production_common.py @@ -33,7 +33,7 @@ class SfProductionProcessParameter(models.Model): if product_id: product_id.server_product_process_parameters_id = self.id else: - res_partner = self.env['res.partner'].search('name', '=', '湖南傲派自动化设备有限公司') + res_partner = self.env['res.partner'].search([('name','=','湖南傲派自动化设备有限公司')]) self.env['product.template'].create({ 'detailed_type': 'service', 'name': product_name, diff --git a/sf_manufacturing/wizard/process_outsourcing.py b/sf_manufacturing/wizard/process_outsourcing.py index 2ee31410..b5b162f2 100644 --- a/sf_manufacturing/wizard/process_outsourcing.py +++ b/sf_manufacturing/wizard/process_outsourcing.py @@ -28,7 +28,7 @@ class ProductCreationWizard(models.TransientModel): 'server_product_process_parameters_id': self.process_parameter_id.id, } def action_create_product(self): - res_partner = self.env['res.partner'].search('name','=','湖南傲派自动化设备有限公司') + res_partner = self.env['res.partner'].search([('name','=','湖南傲派自动化设备有限公司')]) default_values = { 'detailed_type': 'service', 'name': f"{self.process_parameter_id.process_id.name}{self.process_parameter_id.name}", From 8fcc436ce5a4c6775bf7b1dbd10d778820e9002b Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Tue, 22 Apr 2025 14:24:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/views/mrp_routing_workcenter_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/views/mrp_routing_workcenter_view.xml b/sf_manufacturing/views/mrp_routing_workcenter_view.xml index a28141f6..6cd340ad 100644 --- a/sf_manufacturing/views/mrp_routing_workcenter_view.xml +++ b/sf_manufacturing/views/mrp_routing_workcenter_view.xml @@ -29,7 +29,7 @@ - +