Friday, January 5, 2024
9 changes · 17.0
Enhancements to existing features
Adds a ready-to-use chart of accounts and related tax setup for large businesses operating in China. This helps larger Chinese companies start accounting configuration faster and with settings better aligned to their needs.
Original PR description
Adds a new COA for large businesses in China to better support their needs out of the box. Also implements new taxes for the same large businesses. 3202831 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This draft updates parts of the document signing flow, including the PDF signing view and the name/signature dialog. The details are limited, but the changes appear focused on improving how users complete electronic signatures.
The Knowledge app now caches permission checks when users search for articles in the command palette. Instead of checking user permissions every time someone types in the search bar, the system remembers the result from the first check and reuses it. This reduces unnecessary server requests and makes the search experience faster.
Original PR description
When the user enters specific terms in the command palette, and there is no article matching those terms, the system will display a helper that allows the user to quickly create a new article with…
When the user enters specific terms in the command palette, and there is no article matching those terms, the system will display a helper that allows the user to quickly create a new article with the provided name. The helper will only be shown if the user has the permission to create a new article in the database. To verify this permission, the system will perform an RPC call to the server each time the helper needs to be displayed. In practice, it's highly unlikely for the user to lose the `create` privilege between two searches. Therefore, one can cache the result of the RPC call that checks if the user is allowed to create a new article. Caching this result should reduce the number of RPC calls triggered when the user types something in the search bar. To implement the caching mechanism, we will simply use the `memoize` utility function to cache the promise checking the user's `create` privilege. The system will perform the RPC call on the first invocation, cache the promise, and reuse it for subsequent calls, thereby improving speed. task-3603346
Resolved issues and error corrections
A bug has been fixed where the pager (pagination controls) was not appearing in the Timesheet Timer List View. This issue was caused by a technical interaction problem in the framework that has been resolved. Users will now be able to see and use pagination controls when viewing timesheet timers, improving navigation through large lists.
Original PR description
Before this commit and it's community counter part [1], the pager wasn't displayed in the TimesheetTimerListView. This was due to a wrong interaction between two calls to useSubEnv and useChildSubEnv (more information available on [1]). The issue has been fixed directly in the framework, so this commit only adds a test. opw 3636182 Forward-Port-Of: odoo/enterprise#53317 Forward-Port-Of: odoo/enterprise#53286
This fix resolves a crash that occurs when users import PDF invoices using OCR if they have uninstalled the Italian EDI module. The issue was caused by code in the reports module trying to access a function that only exists in the EDI module. We've reorganized the code to restore proper dependencies, ensuring invoice imports work reliably regardless of which modules are installed.
Original PR description
After odoo/enterprise#38518, there are cases in which people uninstall `l10n_it_edi` so the following traceback is given when importing a PDF invoice (OCR):
```
File "/home/odoo/src/enterprise/saas-16.4/l10n_it_reports/models/account_move.py", line 9, in <lambda>
lambda rec: self.env['account.edi.format']._check_filename_is_fattura_pa(rec.name)
AttributeError: 'account.edi.format' object has no attribute '_check_filename_is_fattura_pa'
```
We move everything back to `l10n_it_edi`, ~~but the test will be excised.~~
Community PR: odoo/odoo#147370
Forward-Port-Of: odoo/enterprise#53333Customer statements were displaying the wrong year at the end of certain weeks due to an incorrect date format code. This fix corrects the date formatting so that year-end dates like December 31, 2024 display correctly instead of showing 2025. This ensures financial reports show accurate dates to customers.
Original PR description
The dates in the customer statements header is using the format 'Y'. This is an issue as the capital Y is using the ISO year-week calendar, leading to the wrong year being displayed in the report during some weeks. To reproduce on runbot, simply open the partner ledger on 2024 and print. The end date should be 31/12/2024 but formatted as 31/12/2025
This fix resolves a crash that occurred when users tried to autofill cells upward in spreadsheet pivot tables by dragging to column headers. The issue happened because the system was passing incorrect parameters when autofilling the last column. Now the autofill feature works correctly regardless of which column is selected.
Original PR description
Steps to reproduce: - Select a cell from last column (Total) - Autofill vertically upwards by targeting a column header (drag upto measure, total or beyond) - It leads to a traceback error since in cases with step <= -2, incorrect params are being passed to `makePivotFormula` of `_autofillColFromValue` method. This PR fixes the issue by handling the case of last column seperately. It ensures that correct params are passed in each case, and hence an accurate resultant formula is formed. Task ID : 3461853 Forward-Port-Of: odoo/enterprise#53568 Forward-Port-Of: odoo/enterprise#45685
A bug was fixed where purchase taxes could incorrectly be applied to customer invoices when the OCR system detected a matching tax. The system now correctly uses sales tax settings for customer invoices instead of purchase tax settings, ensuring accurate tax classification.
Original PR description
The default purchase tax could be set on a customer invoice when it matched the tax found by the OCR. Now, it will properly check `account_sale_tax_id` instead of `account_purchase_tax_id` for customer invoices. Forward-Port-Of: odoo/enterprise#53717 Forward-Port-Of: odoo/enterprise#53558
This update fixes an issue where the Knowledge export feature was including unnecessary interface elements like discussion tabs and toolbars in exported documents. The fix ensures that only the main content is exported, resulting in cleaner, more professional exported files that contain only the information users actually need.
Original PR description
This commit fixes a bug where the export button would take into account elements that are useless to print (such as discuss tabs). Now we added a scss rule inside the `knowledge_print.scss` file to remove any element that is not inside of the action_manager => all of the discuss containers, the editor toolbar, etc. task-3653295 Forward-Port-Of: odoo/enterprise#53573