Daily updates from Odoo
Monday, December 2, 2024
3 changes
2 changes
Enhancements to existing features
Luxembourg payroll now calculates meal voucher contributions more accurately, deducting only the employee contribution when applicable and supporting cases where that contribution is treated as taxable benefit in kind. It also handles vouchers above the allowed daily limit so excess amounts are included correctly for tax and social contribution purposes.
Original PR description
An employee contributes €2.8 per day towards meal vouchers. The total of €2.8 multiplied by the number of workdays is either subtracted from the employee's net salary or added to their gross salary…
An employee contributes €2.8 per day towards meal vouchers. The total of €2.8 multiplied by the number of workdays is either subtracted from the employee's net salary or added to their gross salary as a benefit in kind (BIK). This amount is then considered part of the taxable and contributory base. Currently, only the 'Subtracted from net' scenario is implemented. Additionally, if the daily meal voucher value exceeds the maximum limit (e.g., €15 for 2024), the difference between the daily voucher amount and this maximum should also be treated as BIK, similar to the case where the employee's meal voucher contribution is added to the gross salary. This commit: 1. Fixes a bug in the 'Subtracted from net' case, where the full meal voucher amount was incorrectly deducted from the employee's net salary, instead of only the employee's contribution. 2. Adds handling for the case where €2.8 times the number of workdays is added to the gross salary. 3. Implements handling for situations where the daily meal voucher amount exceeds the set maximum. 4. Makes minor adjustments to the meal vouchers section in the contract view. task-4310359
Businesses can now use FEC import and export capabilities in any country when the relevant module is installed, instead of being limited to French companies. This makes the accounting data exchange workflow more flexible for international deployments that need the same format.
Original PR description
*: reports, fec_import The FEC import/export feature could be useful for other countries and should be allowed even if the country is not French as long as the module is installed. task-4181556
1 change
Enhancements to existing features
Automated actions can now read incoming request headers and use secure digest checks when handling webhooks. This makes it easier for businesses to connect Odoo with third-party services while validating that requests are legitimate.
Original PR description
Before this commit, the code had no access to any request's headers nor could we use HMAC/Hashlib functions to authenticate and verify incoming webhook. This was a limitation in the basic flows that the feature is supposed to support. After this commit, we pass in the context a key "headers" that contains a copy of the request headers. We're also given the possibility to authenticate third-party requests by comparing digest. ### (Useless) context about this PR: This PR is based on kebeclibre's PR (commit 2d345a5) when request payload where added. It's also my first PR on an open-source project and I'm new to Python/programming, my apologise in advance if I did a mistake. I'm open to any feedback, many thanks! --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr