From 1d22ca55356e1bd524a31756935f461f229fd122 Mon Sep 17 00:00:00 2001 From: "Jorge E. Gomez" Date: Mon, 13 Dec 2021 08:59:33 -0500 Subject: [PATCH] [ADD] New patch for Payslips on HR Avancys --- apply_patches.sh | 3 ++- ..._hr-avancys_fixes--payment-date-on-payslip.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 patches/20211210_hr-avancys_fixes--payment-date-on-payslip.patch diff --git a/apply_patches.sh b/apply_patches.sh index be5f27c..6fcb338 100755 --- a/apply_patches.sh +++ b/apply_patches.sh @@ -49,7 +49,8 @@ pt_vendor () OPTIONS="-p1 --verbose" pushd $DEST - git apply $OPTIONS $SRC/patches/20211209_hr-avancys_delete-without-sql-in-holiday-book.patch + #git apply $OPTIONS $SRC/patches/20211209_hr-avancys_delete-without-sql-in-holiday-book.patch + git apply $OPTIONS $SRC/patches/20211210_hr-avancys_fixes--payment-date-on-payslip.patch popd } diff --git a/patches/20211210_hr-avancys_fixes--payment-date-on-payslip.patch b/patches/20211210_hr-avancys_fixes--payment-date-on-payslip.patch new file mode 100644 index 0000000..e0edd5b --- /dev/null +++ b/patches/20211210_hr-avancys_fixes--payment-date-on-payslip.patch @@ -0,0 +1,13 @@ +diff --git a/hr_avancys/models/hr_payslip/hr_payslip_processing.py b/hr_avancys/models/hr_payslip/hr_payslip_processing.py +index d19fdde..ce5402d 100644 +--- a/hr_avancys/models/hr_payslip/hr_payslip_processing.py ++++ b/hr_avancys/models/hr_payslip/hr_payslip_processing.py +@@ -151,7 +151,7 @@ class HrPayslipProcessing(models.Model): + 'contract_id': cnp[0], + 'employee_id': cnp[1], + 'liquidation_date': record.liquidation_date, +- 'accounting_date': record.accounting_date, ++ 'accounting_date': record.payment_date, + 'company_id': self.env.company.id, + 'period_id': record.period_id.id, + 'payslip_type_id': record.payslip_type_id.id,