Thursday, February 22, 2024
5 changes · 17.0
Enhancements to existing features
This update adds a new manifest key called 'maintenance_loc' that allows modules to store their actual lines of code count. This is particularly important for data modules where automatic code counting tools are inaccurate. By hardcoding this value in the module manifest, the system can now provide accurate code metrics for reporting and maintenance purposes.
Original PR description
For data modules, cloc is not accurate based on the path. It is therefore needed to compute it on a database where this module was imported. This new key allows us to save the value in the manifest so that the number of lines of code will be hardcoded into the modules. This is only used for industries for now.
This update reorganizes the menu options in the Point of Sale interface by moving 'Close session' and 'Backend' options to the bottom of the menu list. This improves the user experience by placing less frequently used administrative actions at the end, making the most common operations more accessible at the top of the menu.
Original PR description
-Move menu options to have 'Close session' and 'Backend' at the bottom of the list task id: 3759943 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
Resolved issues and error corrections
A test for tax report carryover was failing because it was finding more external values than expected. The fix makes the search more specific to only find the intended carryover value, preventing test errors. This ensures the tax reporting tests run reliably without false failures.
Original PR description
In the `l10n_lu_reports` `annual_tax_report` the label `_default_balance` creates an `account.report.external.value` by default. The tests for `tax_report_carry_over` search for all external values expecting to find just the carry-over one, but they find more - so they traceback with "Expected singleton". To fix this, we're changing the search domain to be more specific. Link: https://runbot.odoo.com/web/#id=56375&model=runbot.build.error Runbot error 56375
Code cleanup and technical improvements
The barcode scanning test methods in the Point of Sale module have been reorganized to use a more standardized barcode function. This refactoring improves the consistency and maintainability of the test code, making it easier for the development team to manage and update barcode-related tests in the future.
Original PR description
refactor 'scan_barcode' method to use barcodes function task id: 3674936 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The 'Include Archived' toggle has been removed from the document filtering interface since documents can no longer be archived. This cleanup removes a confusing option that was no longer functional, making the filter interface cleaner and less misleading for users working with documents.
Original PR description
Since we can no longer archive documents, the 'Include Archived' toggle checkbox of the domain selector is now irrelevant and hence this PR removes it. Technical: The archive feature for documents has been removed with #37389. However, the active field is still being utilized for the 'trash' feature and hence cannot be removed. Whether the 'Include Archived' toggle should be displayed or not, is determined by checking if a particular model has 'active' in its fieldDefs (i.e. if the model has archive/unarchive feature). As a result, the condition becomes true in case of 'documents' model despite archive records feature not being available anymore. Thus, this PR adds a condition to check resModel and hides the toggle checkbox from domain selector in case of 'documents' model. Task: [3695462](https://www.odoo.com/web#id=3695462&menu_id=4722&cids=2&action=333&active_id=965&model=project.task&view_type=form)