From cb766361e32b2f81c9fd053eb69112475e03c2cd Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sun, 1 Jun 2025 16:44:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_sps_approval/models/inherit_product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_sps_approval/models/inherit_product_template.py b/yuthon_sps_approval/models/inherit_product_template.py index 426d9f891..76c7012d4 100644 --- a/yuthon_sps_approval/models/inherit_product_template.py +++ b/yuthon_sps_approval/models/inherit_product_template.py @@ -9,4 +9,4 @@ class ProductTemplate(models.Model): template_ids = self.env["product.template"].browse(self._context.get('active_ids', self._context.get('active_id'))) company_id = self.env['res.company'].search([('name', '=', '集团本部')]) for template in template_ids: - template.company_id = company_id.id \ No newline at end of file + template.write({'company_id': company_id.id}) \ No newline at end of file From 4ce164ce8ce97e654fa62ed5bf8c0a51123be371 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sun, 1 Jun 2025 16:46:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/views/inherit_hr_payslip_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml index 8ecd1e064..bce3e84fe 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -340,11 +340,11 @@