Thursday, February 13, 2025
3 changes · 18.0
Enhancements to existing features
Payment processing can now let related modules choose which invoices should receive a notification. This helps avoid unnecessary or inappropriate invoice messages when certain invoices should be excluded.
Original PR description
Instead of directly notify the invoices link to the transaction in _log_message_on_linked_documents, the invoice return by _get_invoices_to_notify are notified. It allow other modules to exclude some invoice --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The time off app now allows leave types marked as “Other” to bypass standard date validation. This supports more flexible configurations for worked-time or special leave categories that do not need the usual strict date checks.
Original PR description
Description of the issue/feature this PR addresses: This commit modifies the `_check_date` method in the `HrLeave` model to skip the date constraint check when the leave type is set to 'Other'. - Updated `_check_date` method to bypass the standard date validation if `leave_type_time_type` is 'other'. - This allows for more flexible date configurations for specific leave types. Current behavior before PR: The _check_date method always enforces date constraints, regardless of the leave type. This prevents the use of "leave" types that do not require strict date validation as they are worked time. Desired behavior after PR is merged: The _check_date method will skip date validation when the leave_type_time_type is set to 'other', allowing for more flexible leave configurations. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Belgian fleet payroll setup no longer overrides the vehicle fuel type default to diesel. This better reflects current Belgian company car usage, where electric vehicles are now the common choice, and reduces manual adjustments for users.
Original PR description
Since electric car is the most used new cars in belgium, we don't need to change the default to 'diesel' for belgium.