Tuesday, May 25, 2021
2 changes · master
Resolved issues and error corrections
Odoo can now process Italian vendor bills received as signed .xml.p7m files from PEC mailboxes. This prevents those invoices from being ignored and allows them to be decoded and created automatically when fetched.
Original PR description
When one or more vendor bills in Italian e-invoice format were sent to the registered PEC mailbox, if they are in the PKCS#7 format ('.xml.p7m'), nothing happened.
The e-invoice content should be automatically decoded and the invoice should be created as soon as the xml file is fetched from the PEC mailbox .
A new remove_signature function has been added in a tools/remove_signature.py file to handle this case.
The OpenSSL and pyOpenSSL libraries must be installed.
They are not in requirements.txt but they're probably available.
New tests has been provided for the signed email reading method.
Task: https://www.odoo.com/web#id=2146335&model=project.task
Related ticket link: https://www.odoo.com/web#id=2460485&model=project.task
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prTime off requests can now be approved even when there are multiple payslips for the same period in different statuses. This prevents payroll records in draft or completed states from incorrectly blocking leave approval, improving reliability for HR teams.
Original PR description
Having different payslips for the same period with different statuses may prevent from accepting a time off. To prevent this we cancel every similar payslips when accepting a payslip. Adjust query count test for payslips. Task ID: 2486703