Daily updates from Odoo
Friday, March 29, 2024
5 changes · master
Enhancements to existing features
Timesheet billing rate targets and leaderboards can now be enabled separately for each company instead of applying to everyone in the database. This gives multi-company organizations better control over which employees see billing indicators and leaderboard features while keeping settings aligned with each company’s needs.
Original PR description
# Goal The "Billing Rate Target" and "Billing Rate Leaderboard" settings in sale_timesheet_enterprise are not company-dependent ; activating them activates the leaderboard and the indicators for every employee registered in the DB. The goal of this PR is to make those feature company-dependent. # Changes - The "group_timesheet_leaderboard_show_rates" and "group_use_timesheet_leaderboard" were removed. This has the side effect of displaying the "Tips" menuitem at all times, but this is not a problem. - Two new boolean fields "timesheet_show_rates" and "timesheet_show_leaderboard" were added to res.company. They control whether the indicators and the leaderboard are displayed for the company or not. - Settings and views were edited to support those fields. task-3702877
Journal reports have been rewritten to provide a simpler, cleaner reporting experience. The expand option has been removed, reducing visual complexity and making the report easier for accounting users to navigate.
Original PR description
Rewriting the journal report Removing expand functionality Cleaning the UI task: 3698843
Resolved issues and error corrections
This update standardizes how Odoo interprets internal filtering rules and fixes a case where empty filters could be handled incorrectly. It reduces the risk of unexpected search results, access behavior, or warnings across several business apps.
Original PR description
This pr is to be reviewed commit by commit. It stems from task opw-2495504 following which a series of changes were established with the framework-py team. [IMP] all: domain leaf semantics (1, "=", 1) is replaced by a boolean [FIX] all: fix misinterpretation of empty domain in expression.OR [IMP] all: better normalization and warnings for wrong domain operator
Features or functions removed from Odoo
The unused Worldline Last Transaction Status button has been removed from Point of Sale. This simplifies the payment terminal integration and reduces maintenance for a feature rarely used by customers.
Original PR description
We currently have an unnecessary and unused feature for Worldline "Last Transaction Status". It's a button which checks the status of the last transation processed by the terminal and sends this data to the PoS frontend. This button adds some unnecessary complexity to our codebase and is widely unused by the clients, so we are removing it in the latest version. task-3460003
Code cleanup and technical improvements
Automated product tours and tests now use event behavior that more closely matches real user interactions, such as typing and key presses. This makes the tours easier to understand and reduces hidden automatic behavior, improving reliability across many business flows.
Original PR description
In this commit, events in addons/web_tour/static/src/tour_service/tour_utils.js writed with native dispatchEvents has been refactored to use Hoot events. These events are much closer to the behavior…
In this commit, events in
addons/web_tour/static/src/tour_service/tour_utils.js writed with native dispatchEvents has been refactored to use Hoot events. These events are much closer to the behavior of a user (e.g. instead of overwriting the value of an input, it simulates the encoding using keydowns).
The motivation of these changes is to make the tours more understandable and significantly less implicit. As a result, “automatic” behaviors have been removed.
Here below are the main modifications made in RunningTourActionHelper class :
- The auto method has been removed.
- remove_text() has been replaced by clear().
- text() has been splitted in edit(), fill(), select(), selectByIndex(), selectByLabel() and editor().
- Default "Test" string has been removed. No text => No text (Then, note that `run edit` will just clear the input)
- New events has been added like range(), press() and blur().
A New feature has been added in tour_compiler.js :
You can now chain events in run attribute of a step with `&&` :
e.g. :
```
{
extra_trigger: ".o_web_studio_sidebar .o_web_studio_properties.active",
trigger: "input[name='string']",
run: "edit new name && press Enter",
},
```
Still to do in a next PR :
- refactor click()
- refactor drag_and_drop_native()
task~3820046
https://github.com/odoo/odoo/pull/158055