Daily updates from Odoo
Thursday, August 10, 2023
3 changes
Enhancements to existing features
A new automated test checks that Belgian payroll correctly handles an employee moving to a new job with a new contract. This helps ensure required salary details are pre-filled and reduces the risk of errors during internal job changes.
Original PR description
The added test is intended to check that an employee signing a new contract for a new job inside the company will be correctly adapted. taskID 2898298
This update standardizes how translated messages insert values across several Odoo Enterprise apps. It reduces duplicated formatting logic behind the scenes, making translations easier to maintain and less error-prone without changing user workflows.
Original PR description
Improve `gettext` to directly handle value injection within translations, removing the need for `sprintf`.
```js
sprintf(_t("Due in %s days"), days);
```
becomes
```js
_t("Due in %s days", days);
```
Community: https://github.com/odoo/odoo/pull/123932The global filter editor now behaves more predictably when users click the “Start typing...” prompt for related models. It clears the placeholder label, closes unnecessary dropdown suggestions, and keeps focus in the input so users can enter their intended value without distraction.
Original PR description
**Description** _Issue is related to :- Related model dropdown in global filters._ This PR ensures that clicking on 'Start typing...' would clear the label and close the dropdown. Also, it would disable display of default values and matching fields, by maintining the focus on input field. Task ID : 3375332