Daily updates from Odoo
Tuesday, May 28, 2019
12 changes · master
Enhancements to existing features
This update refreshes the online shop presentation with card-based product layouts, responsive square product grids, and clearer mobile behavior. It also adds more shop display options, such as configurable products per page/row and a saved layout preference, helping merchants provide a smoother browsing experience for customers.
Original PR description
* website, website_sale_comparison, website_sale_coupon, website_sale_delivery, website_sale_wishlist - Use cards to match event and forum recent design refactoring - Make the shop use responsive and perfect-squared product grid items - Make the shop product list view option a CSS-only option, which visitors can toggle to/out - Use better XML and JS for existing options and add new options - Allow to set ppg/ppr - Better mobile responsiveness - Make more robust xpath - ... Note: the design will be reviewed in an upcoming task, this ensures more robust XML to work on and new options to start with. See sub-commits for details. task-1925327
Systray dropdowns now close when the user moves the mouse away from their parent menu item or hovers over another systray item. This makes navigation cleaner and prevents old submenus from staying open unexpectedly.
Original PR description
Pad:https://pad.odoo.com/p/r.8967f587628e6a2213cdabd418151de7 Task: https://www.odoo.com/web?#id=1959678&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720
Grouped list views no longer show the drag handle because records cannot be reordered there. This removes a misleading control and makes the list interface clearer for users.
Original PR description
Pad:https://pad.odoo.com/p/r.ce982c5806cf8123860c30b00bf9206e Task:https://www.odoo.com/web#id=1964661&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720
The web interface now reserves the 'b' keyboard shortcut for navigating to the previous breadcrumb, making it faster to move back through screens. To avoid conflicts, buttons will no longer automatically receive 'b' as an access key.
Original PR description
Also, exclude 'b' for being automatically assigned to buttons Issue : 1878248 Co-authored-by: Mohammed Shekha <msh@openerp.com> 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 renames the user availability section from “Out of Office” to “Chat Status” and shortens the related message field label to “Message.” The change makes the wording clearer for users managing their chat presence, without changing underlying functionality.
Original PR description
Description of the issue/feature this PR addresses: - Related task: https://www.odoo.com/web?#id=1999697&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 - Pad: https://pad.odoo.com/p/r.8735524df04c399b49ea808718d78330 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 Mail app now hides the Integrations tab on channel pages when no integrations are available. This reduces clutter and avoids showing users an empty or irrelevant section.
Original PR description
Description of the issue/feature this PR addresses: - Related task: https://www.odoo.com/web?#id=1973976&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.b032f946579215ff8a9b9bfa683dab40 Current behavior before PR: Desired behavior after PR is merged:
Manufacturing teams can now link workcenters that are able to perform the same operation. When planning a work order, Odoo checks the main and alternative workcenters and assigns the job to the one that can finish soonest, helping reduce delays and improve machine utilization.
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
Odoo can now optionally use the Jing validator to provide clearer, more precise messages when data files fail validation. This helps developers identify and fix file issues faster without adding a required dependency for all installations.
Original PR description
libxml2 generally provides awful error messages on validation failure:
ERROR:RELAXNGV:RELAXNG_ERR_EXTRACONTENT: Element odoo has extra content: data
The reference implementation of relaxng (jing) provides much, much more useful messages:
error: text not allowed here; expected the element end-tag or element "field"
(the error was some stray text after a `</field>` tag, the test case was the same for both lxml and jing, jing furthermore provides the correct line number)
It's in Java which makes it inconvenient and expensive as a core dependency, but [the jingtrang packages](https://pypi.org/project/jingtrang/) provides a convenient bundle of jars & invocation, so it's not too painful as an optional dependency & QoL improvement.This change simplifies how window actions decide where they appear, replacing older overlapping settings with explicit view visibility rules. It reduces confusing or invalid configurations and makes future interface behavior easier to extend across many Odoo apps.
Original PR description
https://www.odoo.com/web#id=1843603&view_type=form&model=project.task&action=333&active_id=1364&menu_id=4720 Following from #17764 ir.values has been removed and from #20351 the ability to define…
https://www.odoo.com/web#id=1843603&view_type=form&model=project.task&action=333&active_id=1364&menu_id=4720 Following from #17764 ir.values has been removed and from #20351 the ability to define form-only action bindings has been restored. However doing so revealed some level of correlation/lack of orthogonality between the attributes involved with `multi` ✕ `binding_type` yielding invalid states. This PR intends to fix this *and* make the mechanism more flexible and future-proof: under the old model, `multi` would affect both relate & multi types and do so differently: |action type (key2)|multi|visibility| |-|-|-| |relate|✗|form| |relate|✓|list| |multi|✗|list,form| |multi|✓|list| Following the previous two PRs, the second case is considered nonsensical but technically still there. Under this new model: * the binding type defines only that, currently just which contextual menu the action appears under in the bound model * the binding *views* defines which views the action appears for, clearly spelled out, currently only "list" and "form" are used but in the future clients could show actions for other view types * the default changes from form-only to list & form * `<act_window>` is altered to remove `key2` and `multi` and surface binding views & type * src_model is removed from both act_window and ir.actions.act_window as it's redundant with binding_model_id (unless it has behaviours I'm unaware of) ## ~~Questions~~ * ~~should the binding views be on ir.actions.actions directly instead of just act_window? Seems a bit odd to restrict this flexibility…~~
Systray dropdown menus now close when a user moves the cursor away to another systray item, reducing lingering menus and accidental choices. This makes navigation in the enterprise web interface feel cleaner and more predictable, with supporting test updates to protect the behavior.
Original PR description
Pad:https://pad.odoo.com/p/r.8967f587628e6a2213cdabd418151de7 Task:https://www.odoo.com/web#id=1959678&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720
The Web Studio report editor tests were adjusted to match recent changes in how the media dialog opens. This keeps automated quality checks aligned with the current behavior and helps prevent false test failures during development.
Original PR description
Enterprise counterpart of https://github.com/odoo/odoo/pull/33509 This change is needed because we don't call the bootstrap show tab anymore for the media widget. The mock approach was copied from the web_editor test itself.
The editable list view now displays the delete icon without an unwanted black line underneath it. This small visual cleanup makes sale order line editing look more consistent with the rest of the interface.
Original PR description
UI improvement on sale order line. Remove the black line under the delete button on sale order line.