Tuesday, May 25, 2021
6 changes · master
Enhancements to existing features
HR and contract screens now hide Belgian-specific employee and contract fields unless the active company is based in Belgium. This keeps forms and reports cleaner for companies in other countries and reduces confusion from irrelevant local compliance fields.
Original PR description
Hide fields related to belgian localisation when not using a belgian company. Task Id: 2496597
This change improves the notification preview in Odoo's systray so users can see rating activity and status changes instead of empty entries. It makes alerts more informative at a glance, helping users understand recent updates without opening each record.
Original PR description
Description of the issue/feature this PR addresses: https://github.com/odoo-dev/odoo/tree/master-rating-tracking-change-preview-zel Current behavior before PR: The rate and status change is shown as empty on the systray. Desired behavior after PR is merged: 1. Once gets rated, there will be a preview on the systray as a notification. 2. The status change will get displayed now on the systray and the tracking values become an object rather than an array. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Payroll and HR contract screens now hide country-specific fields when they do not apply to the selected company. This keeps Belgian, French, and Indian payroll information out of views for companies in other countries, reducing clutter and helping users focus on relevant data.
Original PR description
Hide fields related to belgian payroll localisation when using a non belgian company. Task Id: 2496597
Spreadsheet pivot data now reuses model information more efficiently instead of repeatedly requesting the same details. This reduces unnecessary server calls, which should make opening spreadsheet templates smoother and lighter on system resources.
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