Tuesday, July 5, 2022
3 changes · master
Resolved issues and error corrections
This fixes a display issue in kanban views where setup information placed outside a card could be ignored. Users now see the correct buttons and status-dependent actions, such as installed apps no longer incorrectly showing an Install button.
Original PR description
*base, event, hr_holidays Before this commit, `<t t-set/>` nodes declared outside the main div of a kanban card where ignored by the kanban compiler. This commit fixes that issue. To do so, we refactor a bit the way the compiler and KanbanRecord handle multiple root cards (typically, several roots with a t-if/t-elif/t-else, s.t. there's a unique rendered root), by removing the faulty logic from the compiler that identified card root nodes (and filtered out t-set nodes), and introducing a div for the KanbanRecord component on which we can set classNames, attributes and handlers. The issue could be observed on the Apps kanban view, as it displayed the "Install" button, whether the app was already installed or not.
This update corrects several visual and usability problems in Odoo’s web interface, especially around Kanban quick creation, field sizing, translation buttons, and legacy UTM Kanban styling. It also prevents an error when navigating from an empty Kanban view, making everyday workflows smoother and more reliable.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update reduces internal data inconsistencies and unnecessary processing when records are read, improving stability across several business apps. It also adjusts related tests and fixes edge cases that could cause errors or unexpected empty values in areas like payroll, helpdesk, planning, assets, reporting, manufacturing, and field service.
Original PR description
Companion of https://github.com/odoo/odoo/pull/66938