Friday, September 15, 2023
5 changes · master
Enhancements to existing features
This update changes how default stock locations are assigned for warehouse operations, manufacturing, repairs, and dropshipping. It replaces an older screen-change trigger with automatic calculation logic, making setup more consistent and reliable when operation types are created or updated in bulk.
Original PR description
Description of the issue/feature this PR addresses: Legacy code still use 'onchange' on the 'stock.picking.type' field code to compute the different xxx_location_id. As it is no more viable, this commit replace all these onchange by compute methods. These changes also has a side effect as some already existing compute methods may now get a set of 'stock.picking.type' in input, such that these methods are also updated to handle this case. Current behavior before PR: - default value assignation of default_location_xxx_id fields in 'stock.picking.type' is triggered by an 'onchange' - some compute methods handle one picking_type at a time Desired behavior after PR is merged: - default value assignation of default_location_xxx_id fields in 'stock.picking.type' is triggered by a 'compute' - compute methods handle one or multiple picking_type at a time --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Survey multiple choice questions now use square checkbox icons instead of circle icons, making them easier to distinguish from single-choice questions. The question setup view also better represents multiple choice by showing two checked boxes, helping users understand the question type at a glance.
Original PR description
Purpose ======= Make it easy for users to differentiate between simple choice and multiple choice question types. Specification ============= Change the multiple choice question type checkboxes icon from a circle to a square in the survey result page and the survey template. In the question form view, tick 2 checkboxes instead of one for the multiple choice question type. Task-3252870
This change adds automated coverage that exports translation files to catch syntax issues in static interface templates before they reach users. It helps reduce runtime errors in areas such as attendance, point of sale, events, and live chat by validating more files during testing.
Original PR description
Static qweb files are not tested for syntax errors. This commits adds a hacky way to do this job: we test exporting of translation files. Inspired by the following PRs, that were made as a response for errors caught by sentry * https://github.com/odoo/enterprise/pull/43975 * https://github.com/odoo/odoo/pull/128221
This update removes unused parts of the web interface library and adjusts the online shop cart animation to no longer depend on them. It helps reduce bundled code, which can improve maintainability and may slightly improve page loading performance without changing business workflows.
Original PR description
Includes: widget.js, position.js, data.js, keycode.js, scroll-parent.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/sortable.js, widgets/autocomplete.js, widgets/menu.js, widgets/mouse.js task-3439226 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The web module's sample server can now better handle grouped sample data when collecting record IDs. This improves reliability for internal testing and preview scenarios that rely on sample data behavior matching real server results.
Original PR description
In SampleServer, we make _mockReadGroup support array_agg (at least for the field id).