Daily updates from Odoo
Sunday, March 8, 2026
1 change · 19.0
Resolved issues and error corrections
This update resolves a problem causing the floor screen to repeatedly reload. The issue stemmed from a code change that incorrectly modified appointment times, triggering an infinite loop of re-renders. This fix ensures the floor screen displays accurate appointment information without unnecessary updates.
Original PR description
Infinite re-rendering in floor_screen.
Root cause: `getFirstAppointment` mutates reactive model state
(appointment.start) during rendering:
```
appointments.map((appointment) => {
if (appointment.start < startOfToday) {
appointment.start = startOfToday; // <= mutates reactive state!
}
});
```
And `startOfToday` is set by
`DateTime.now().set({ hours: 0, minutes: 0, seconds: 0 })`
Which doesn't zero milliseconds, so each render creates a new
`startOfToday` with a later millisecond value.
The comparison `appointment.start < startOfToday` keeps being true
triggers another write => another re-render => infinite loop.