Skip to content

Commit

Permalink
[IMP] connector_sage: Adapt to process type change on payroll_sage mo…
Browse files Browse the repository at this point in the history
…dule
  • Loading branch information
eantones committed Oct 17, 2023
1 parent 539a301 commit 88bfc19
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion connector_sage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88bfc19

Please sign in to comment.