From 53a676bc93cbf6e74b55ff2a7adcfc2e2dd6fdfb Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Tue, 22 Apr 2025 14:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=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}",