Daily updates from Odoo
Thursday, February 22, 2024
2 changes · 17.0
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)