Monday, April 15, 2024
10 changes · master
Enhancements to existing features
Maintenance users can now enter and view duration fields in a time-based format, making planned or actual work durations easier to understand. This small usability improvement helps reduce confusion when recording maintenance activity times.
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 removes an obsolete internal accounting field that was no longer used after a previous performance-related change. It helps keep the accounting module cleaner and avoids maintaining unnecessary database information, with no expected impact on day-to-day users.
Original PR description
This is a followup of https://github.com/odoo/odoo/commit/38af13a6df685f90ed58048fbb2a2b8f1521d101, where we discarded the "parent store" mechanism for performance reasons.
Point of Sale now has a shared way to track when background actions are running, making it easier to show accurate loading indicators. This helps staff get clearer feedback during actions such as receipt handling while reducing repeated implementation work.
Original PR description
In this change, we introduce a hook that tracks the status of an async function call. The state is reactive and can be used in the rendering of component. This encapsulates the boilerplate that is commonly done to show a loading spinner.
The portal rating flow now directly uses the customer’s comment as the feedback text instead of checking an unused separate field. This simplifies the process and preserves the same customer-facing behavior when ratings are submitted with messages.
Original PR description
There is no use case of assining rating_feedback parameter in `xml` or `js` codes. So getting this value of `kwrgs` in post message params is always falsy. If the value is falsy the alternative value is `message` which is actually the body of the comment. This value is used to set the feedback in creating a rating coupled with the sent message. So we can simply assign the message body to feedback text.
This update modernizes internal tests for web screen transitions by moving them to Odoo's newer testing approach. It helps maintain the quality and stability of the web interface without changing how users interact with the system.
Original PR description
task-id: 3705027 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 change removes an unnecessary internal step in how the web module handles server method calls. It should make error reports easier for developers to read and investigate, with no expected change to day-to-day user behavior.
Original PR description
The `DataSet` controller was using a private method `_call_kw()` that calls the API function `call_kw()`, which does the actual call with the API adaptations. That intermediate method `_call_kw()` has little value and only makes tracebacks more difficult to read, hence the simplification of the call stack.
This update allows serialized fields in the base sparse field module to accept lists as well as dictionaries. It improves compatibility with JSON data formats and helps avoid errors when valid list-based data is stored.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Serialized field can be only a dictionnary Desired behavior after PR is merged: Serialized field can be only a dictionnary or a list. In json both are supported, the only issue is that the convert method do not support it -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The demo shop now shows a wood-style option for product colors using an image instead of a plain color. This makes sample products more visually appealing and demonstrates how image-based options can help customers understand product variations.
Original PR description
This commit introduces 'Wood' as a new attribute value in the Color attribute (display type = color) for the demo data. Unlike traditional colors, 'Wood' is represented by an image (wood.png), enhancing the demo's visual appeal and showcasing the image upload feature for color displays. The commit also includes two new variants for the 'Acoustic Bloc Screens' product: one in 'White' and another in 'Wood'. This addition demonstrates the flexibility and capability of our attribute system in a more dynamic demo setting. task-3581924
This update improves the internal test coverage and reliability for Odoo's web action behavior, including reports, URLs, and window actions. It helps developers catch issues more accurately before they affect users, with no direct change expected in day-to-day business workflows.
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
A radio-button choice control that can show only approved options is being moved from Surveys into the shared web layer so it can be reused more broadly. This keeps translated option labels intact while simplifying how allowed choices are configured.
Original PR description
The "radio selection with filter" widget allows to show/hide some selection values given a list of allowed selection values. The feature is similar to the "filterable selection" widget but for radio buttons. It was added inside survey first where it proved reliable. We wanna use it in base too. A slight modification took place while moving the file, the allowed selection context now takes a list of technical strings instead of a list of (technical string, humain string) pairs. This allow to keep the (possibly translated) original values. task-3820247 community: https://github.com/odoo/odoo/pull/158535