diff --git a/connector_sage/__manifest__.py b/connector_sage/__manifest__.py index 1e95daeea..c070d14dd 100644 --- a/connector_sage/__manifest__.py +++ b/connector_sage/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Sage-Odoo connector", - "version": "14.0.1.0.5", + "version": "14.0.1.0.6", "author": "NuoBiT Solutions, S.L., Eric Antones", "license": "AGPL-3", "category": "Connector", diff --git a/connector_sage/models/payroll_sage_payslip_check/binding.py b/connector_sage/models/payroll_sage_payslip_check/binding.py index cab5fef0a..1cac3b663 100644 --- a/connector_sage/models/payroll_sage_payslip_check/binding.py +++ b/connector_sage/models/payroll_sage_payslip_check/binding.py @@ -54,7 +54,7 @@ def import_payslip_checks(self, payslip_id, backend_record): "CodigoEmpresa": backend_record.sage_company_id, "Año": payslip_id.year, "MesD": ("between", (payslip_id.month_from, payslip_id.month_to)), - "TipoProceso": payslip_id.process, + "TipoProceso": payslip_id.process_id.name, } self.env["sage.payroll.sage.payslip.check"].import_batch( diff --git a/connector_sage/models/payroll_sage_payslip_line_payroll/binding.py b/connector_sage/models/payroll_sage_payslip_line_payroll/binding.py index c9643e287..c3bb7e65b 100644 --- a/connector_sage/models/payroll_sage_payslip_line_payroll/binding.py +++ b/connector_sage/models/payroll_sage_payslip_line_payroll/binding.py @@ -28,7 +28,7 @@ def import_payslip_lines(self, payslip_id, backend_record): "FechaRegistroCV": payslip_id.labour_agreement_id.registration_date_cv, "Año": payslip_id.year, "MesD": ("between", (payslip_id.month_from, payslip_id.month_to)), - "TipoProceso": payslip_id.process, + "TipoProceso": payslip_id.process_id.name, } self.env["sage.payroll.sage.payslip.line.payroll"].import_batch( diff --git a/connector_sage/models/payroll_sage_payslip_line_transfer/binding.py b/connector_sage/models/payroll_sage_payslip_line_transfer/binding.py index 8ebb61d57..5524d1f99 100644 --- a/connector_sage/models/payroll_sage_payslip_line_transfer/binding.py +++ b/connector_sage/models/payroll_sage_payslip_line_transfer/binding.py @@ -31,7 +31,7 @@ def import_payslip_lines(self, payslip_id, backend_record): "FechaRegistroCV": payslip_id.labour_agreement_id.registration_date_cv, "Año": payslip_id.year, "MesD": ("between", (payslip_id.month_from, payslip_id.month_to)), - "TipoProceso": payslip_id.process, + "TipoProceso": payslip_id.process_id.name, } if payslip_id.payment_date: filters["FechaCobro"] = payslip_id.payment_date