Daily updates from Odoo
Tuesday, November 30, 2021
2 changes
Resolved issues and error corrections
Tasks shown together in the Gantt view are now sorted by their start date instead of unrelated model settings like priority or sequence. This makes schedules easier to read and ensures users see work in the correct chronological order within each time period.
Original PR description
This PR purpose is to ensure that the records displayed in the gantt view are chronogically displayed when being part of a same cell. Let's say we have the following: - Task 1: sequence = 1, starts…
This PR purpose is to ensure that the records displayed in the gantt view
are chronogically displayed when being part of a same cell.
Let's say we have the following:
- Task 1: sequence = 1, starts on 2021-02-04 and ends 2021-02-05
- Task 2: sequence = 2, starts on 2021-02-03 and ends 2021-02-04
- Task 3: sequence = 3, starts on 2021-02-01 and ends 2021-02-15
All tasks are assigned to you and the gantt view is in month mode over the period
feb 2021
Current behavior:
- In the february cell of your user, you see, considering top to bottom order:
- Task 1
- Task 2
- Task 3
Expected behavior:
- In the february cell of your user, you should see, considering top to bottom order:
- Task 3
- Task 2
- Task 1
Reason:
The search performed by the rpc returns records according to the order set on the model.
As such, they are treated in that order and this causeis the chronological order not to be respected
when pills are part of the same cell. At the time of this commit the order in task
is "priority desc, sequence, id desc" which is obviously not chronological.
task-2516896Creating 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