[ADD] New patch for Payslips on HR Avancys

This commit is contained in:
Jorge Enrique Gómez Gómez 2021-12-13 08:59:33 -05:00
parent bb0bab1887
commit 1d22ca5535
2 changed files with 15 additions and 1 deletions

View File

@ -49,7 +49,8 @@ pt_vendor ()
OPTIONS="-p1 --verbose" OPTIONS="-p1 --verbose"
pushd $DEST 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 popd
} }

View File

@ -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,