Friday, December 11, 2020
2 changes · master
Enhancements to existing features
Module installations and upgrades now show shorter, more focused error messages when an XML view is broken. This helps developers identify the problem faster by showing the relevant file and nearby lines instead of long internal tracebacks.
Original PR description
When installing/upgrading a module with broken xml views, the module installation fails with an error message that should help the developer locate and correct the error. Before this commit, a…
When installing/upgrading a module with broken xml views, the module installation fails with an error message that should help the developer locate and correct the error. Before this commit, a 3-level traceback was thrown at the developer: 1. The initial ValueError containing the original error message and some view context information. 2. The noisy re-cast of the ValueError to a ValidationError with no additionnal information. 3. An additionnal re-cast of the exception to add the original source file path plus the entire XML source code that failed to be parsed. We argue the error contains too much noise as developers are mostly interrested in correcting their erronous tag of their view, they are not interrested in `ir_ui_view` internals. The new exception report is much less talkative, the two tracebacks from `ir_ui_view` are logged at the `DEBUG` level. The new exception still contains the original error message with some context on the view record and the original source file path but it only show 5 lines of XML around the erronous tag. Task: 2366612 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
The quick create card in Kanban views now keeps its action buttons on one line, even in languages with longer translations. The Discard action is shown as a compact grey trash icon, reducing visual clutter and preventing awkward wrapping.
Original PR description
PURPOSE All buttons of the quick create kanban card fit in a single row in all languages. SPECIFICATIONS Current While everything looks nice and tidy in English. The layout of our quick create cards quickly suffers once one switches to another language for which those words are longer. To be Replace the Discard button by a thrash button in grey and aligned on the right Add some css to make sure the 3 buttons always fit in a single line => if not, crop LINKS PR Task 2373130 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr