Daily updates from Odoo
Tuesday, February 20, 2024
8 changes
4 changes
Enhancements to existing features
Australian payroll now calculates Ordinary Time Earnings more accurately and applies the improved value across related payroll rules. The update also strengthens payroll tests so future changes to payslip amounts or line ordering are intentional and easier to validate.
Original PR description
Implement rules for OTE, and update existing rules in order to benefit from it and have a more correct value. Also update the tests of the app in order to better test the expected payslips for each structure, ensuring that future changes that will affect the payslips values or line orders are made on purpose. And finally, fix the issues that were brought to light by these new tests. Task id # 3659302
Updates Odoo's spreadsheet experience to a newer library version, bringing improvements across documents, dashboards, pivots, lists, charts, templates, and version history. This should help keep spreadsheet features more reliable and aligned with the latest product capabilities, with broad but mostly incremental user impact.
Original PR description
…-alpha.5
This update improves how Odoo duplicates many records at once, reducing unnecessary processing and database activity. Businesses should see faster copy operations in areas such as accounting, documents, helpdesk, projects, payroll, marketing, manufacturing, and knowledge management.
Original PR description
Purpose ======= Calling copy in a list comprehension or a loop does break the batch definition of many stuffs (create, message_subscribe, followers management, ...) leading to a large amount of…
Purpose
=======
Calling copy in a list comprehension or a loop does break the batch definition of many stuffs (create, message_subscribe, followers management, ...) leading to a large amount of unnecessary requests while duplicating many records.
The copy method is actually the only method left from the old API that does not handle recordsets.
This commit is making the copy and copy_data methods work in batch improving the execution of the computed fields, and the whole records creation process.
Now, copy works mainly like this:
@api.returns('self')
def copy(self, default=None):
vals_list = self.copy_data(default) # this one returns a list of vals
return self.create(vals_list)
And if you want specific vals for each record in the output, simply use copy_data() and modify its output accordingly, like in:
@api.returns('self')
def copy_data(self, default):
vals_list = super().copy_data(default)
return [dict(vals, name=_("%s (copy)", product.name)) for product, vals in zip(self, vals_list)]
For the record, duplicating 400 project.tasks (with lot of postprocess on copy about milestones, task dependencies, SOL mapping) divides the number of sql request by 2.4 (11000 -> 4500) and divides the execution time by 3 (15 -> 5 seconds).
TaskID: 3742289Businesses using Ecuadorian electronic invoicing can now set separate accounts for purchase and sales withholding tax bases. This helps ensure withholding entries record the base tax amount in the right account based on the transaction type, improving accounting accuracy and reporting.
Original PR description
This pr will add a new setting allowing the user to set up the purchase and sale tax base account. When setting up those accounts, creating a withholding will put the base tax amount on those account depending on the move_type. task: 3737356
4 changes
Enhancements to existing features
This update improves the performance of spreadsheet currency loading by using a more efficient data retrieval method. The change reduces the amount of data processed when displaying currency information in spreadsheet lists, resulting in faster load times and better overall application responsiveness.
Original PR description
See community commit Task: 3730232
Amazon's SP-API no longer requires AWS credentials or special security signatures as of October 2023. This update removes the unnecessary AWS authentication code from the Amazon sales integration, simplifying the connection process and ensuring compatibility with Amazon's current requirements.
Original PR description
Starting October 2, 2023, SP-API no longer requires the use of AWS Identity and Access Management (IAM) or AWS Signature Version 4, which means ce don't need to sign SP-API requests with AWS Signature Version 4. At first, this change was just a deprecation. But the SPAPI will now ensure this signature isn't present anymore. task-3534880 Forward-Port-Of: odoo/enterprise#56823 Forward-Port-Of: odoo/enterprise#53839
This update improves how spreadsheets load currency information for monetary fields. Instead of making two separate requests to fetch data and then currency details, the system now retrieves everything in a single request. This reduces network traffic and speeds up spreadsheet loading, though with a small increase in data size per request.
Original PR description
With this commit, list data is loaded using `web_search_read` instead of `search_read`. The goal is to fetch the currency (symbol, decimal places, etc.) of monetary fields in a single request,…
With this commit, list data is loaded using `web_search_read` instead of `search_read`. The goal is to fetch the currency (symbol, decimal places, etc.) of monetary fields in a single request, instead of 2 RPCs. Pros: - less code - one evaluation saved - one network request saved - easier future refactoring (see below) Cons: - overhead of data transferred over network (from 4.5MB to 6.5MB, unzipped, to fetch a list of 20K crm leads). Before this commit, here is what it looked like: 1. the list data is fetch (with the currency_field) 2. the cells are evaluated with the new data 3. we realize we want to format a currency amount. We already have the currency name but not the symbol, etc. So we fetch the currency data 4. evaluate the cells again with the new currency format Now: 1. fetch the list data with everything we need for the currency 2. evaluate the cells This commit also serves another goal for a future refactoring: in the hope of avoiding throwing "loading errors", I'd like to have an easy way to know if a data source is fully loaded or not (the data and the format). With this commit, everything is centralized in the list data source with a single RPC. The goal is therefore achieved with this commit. Task: 3730232 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 survey results page has been redesigned to improve usability and visual clarity. Changes include optimizing page layout to reduce blank space, repositioning filter buttons, improving table readability with horizontal scrolling, and streamlining the display by removing redundant titles and descriptions. These improvements make survey results easier to read and print.
Original PR description
Add a bunch of QOL improvements in the results page design: - Display the survey results page in half page size to prevent having too much blank space between the tables columns - The filter buttons…
Add a bunch of QOL improvements in the results page design: - Display the survey results page in half page size to prevent having too much blank space between the tables columns - The filter buttons are now displayed under the survey title - Show the leaderboard bar on the print preview - Changing the eye dropdown icon to a caret for fold/unfold - Align questions to the left to be on the same level as the sections - Add an horizontal scroll to the matrix and simple/multiple choices tables when the screen is not wide enough to display all the data - Reduce vertical spacing between elements to gain space - Reduce simple/multiple choices tables line height - Reduce survey title, section title and KPIs font size - Display the "Correct", "Partial", "Responded" and "Skipped" badges on a single line and set a rounded border around. - Removing the "Result Overview" title - Removing survey description, section description and question description Task-3707687 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr