Monday, April 21, 2025
2 changes · 17.0
Miscellaneous changes
Save "without_demo=False" inside the configuration file, Odoo starts with demo data. Do the same but in the CLI "--without-demo=False" and Odoo starts without, this is a bug. All strings "False" and "false" in the configuration file are automatically converted to the boolean False. The same doesn't apply with the CLI, so it was evaluating `not "False"` which is False. Change the logic so that "False" and "false" are considered falsy. Description of the issue/feature this PR addresses:
Original PR description
Save "without_demo=False" inside the configuration file, Odoo starts with demo data. Do the same but in the CLI "--without-demo=False" and Odoo starts without, this is a bug. All strings "False" and "false" in the configuration file are automatically converted to the boolean False. The same doesn't apply with the CLI, so it was evaluating `not "False"` which is False. Change the logic so that "False" and "false" are considered falsy. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#205695
Steps: - Install hr_timesheet_attendance. - Set the timezone (for both user and calendar) to Europe/Zurich. - Create Attendance records: [03/01/2025: 00:25:36, 03/01/2025: 10:25:59] - Create a Timesheet for 03/01/2025. - Open the Timesheet Attendance Report and group by day. - Check Attendance Hours and Timesheet Hours: Attendance Hours : Timesheet Hours 02/01/2025: 10 : 00 03/01/2025: 00 : 08 Issue: Attendance was shown as one day earlier
Original PR description
Steps: - Install hr_timesheet_attendance. - Set the timezone (for both user and calendar) to Europe/Zurich. - Create Attendance records: [03/01/2025: 00:25:36, 03/01/2025: 10:25:59] - Create a Timesheet for 03/01/2025. - Open the Timesheet Attendance Report and group by day. - Check Attendance Hours and Timesheet Hours: Attendance Hours : Timesheet Hours 02/01/2025: 10 : 00 03/01/2025: 00 : 08 Issue: Attendance was shown as one day earlier than expected. Reason: The check_in date was incorrect because it was using UTC instead of the employee's local time zone. Fix: Converted check_in to the employee's local time zone before extracting the date. issue:https://github.com/odoo/odoo/issues/169592 task-4320477 Forward-Port-Of: odoo/odoo#192434