Daily updates from Odoo
Wednesday, August 30, 2023
3 changes
Resolved issues and error corrections
The Planning calendar now opens correctly after fixing a translation lookup that could cause an error. This prevents users from hitting a crash when viewing planning slots in the calendar.
Original PR description
Before this commit, a traceback is occured when the calendar view of `planning.slot` model is loaded because `this.env._t` is `undefined`, the reason is because `_t` is no longer in `this.env` and so it should be imported to be used. This commit imports `_t` function and replace `this.env._t` by `_t` to be able to translate the term as before.
The Appointment app no longer adds its own Calendar menu entry because the Calendar app already provides it. This prevents users from seeing two identical Calendar options when Appointment is installed, making navigation clearer.
Original PR description
https://github.com/odoo/odoo/pull/126329 introduced a menuitem in the calendar module for returning to the calendar main screen. However, we already had this menuitem in appointment, so it was showing two "Calendar" menuitems when appointment was installed. This commit removes the menuitem from appointment as it is already present in the calendar module.
This update fixes missed translation label changes so text can continue to display correctly across languages. It is a small cleanup that helps maintain consistent localization behavior in the Planning area.
Original PR description
Related to previous commit c07181b20bf4f06b783136ffdb3b7a304be6b136, this commit fixed missed remplacments of this.env._t by _t. Community : https://github.com/odoo/odoo/pull/133503