Daily updates from Odoo
Tuesday, November 30, 2021
1 change · master
Resolved issues and error corrections
Creating a field service shift now chooses a more relevant default date based on the current planning period. This helps users avoid accidentally scheduling work on the wrong day, while preserving the selected time slot when using the Gantt view plus button.
Original PR description
**Current behavior before PR:** Today's date is selected by default in industry_fsm. **Desired behavior after PR is merged:** If a shift is created through the 'ADD' button: - Set today's date by default if it falls during the current period. - Set the first working day of the period if it doesn't include today's date (i.e. it is in the past or in the future). If the user creates a shift through the (+) button of the Gantt view, the selected timeframe should bypass today's date. **LINKS:** Task-2627052