Daily updates from Odoo
Tuesday, February 6, 2024
8 changes
2 changes
Resolved issues and error corrections
This fix prevents an error that could occur when users click detected fields after OCR processing a vendor bill. It helps keep the invoice upload and review flow stable for accounting users using document recognition.
Original PR description
This commit addresses the missing props declaration in the BoxLayer component. The following changes were made: - Added the previously omitted onClickBoxCallback props definition. - Corrected the validation method for the pageLayer props. Steps to reproduce: 1. Open Accounting with an IAP OCR setup in debug mode. 2. Navigate to Vendor Bills > Upload (Choose a scanned PDF or picture). 3. Wait for the OCR process to complete. 4. Click inside a detected field => Traceback.
A field service test tour now accounts for the setup prompt that appears when no worksheet templates exist. This prevents automated checks from failing in empty or freshly configured databases, improving reliability without changing normal user workflows.
Original PR description
…template Steps to reproduce: - start TestIndustryFsmUi python test after removing all your worksheet templates. Source: - A wizard was added to create a worksheet template if there is no worksheet template. So this wizard doesn't usually appear and when it appears there is no step in the tour to handle it. Fix: - An additional step was added to the tour to verify if the wizard exist and choose to create a new template. task-3716386 X-original-commit: https://github.com/odoo/enterprise/commit/2b1c2af82d1fbb4286d4eb16f156f5e1092c17b8
6 changes
Resolved issues and error corrections
This update fixes data validation errors in the Australian payroll module's demo data and tests. The demo data was incorrectly assigning an employee record to a partner field, and tests were referencing accounting features that the module doesn't depend on. These fixes ensure the module works correctly during system setup and testing.
Original PR description
As seen in the nightly build https://runbot.odoo.com/runbot/build/57728091 There is an issue with the demo data where a hr employee record is trying to be set in a res.partner field. Also, one test is setting accounting stuff while this module isn't dependent on any account modules.
This update fixes a translation issue in the bank reconciliation feature that was preventing text from displaying correctly in Odoo 17.0. The fix updates the code to use the correct translation method, ensuring that users see properly translated text in their preferred language when using the bank reconciliation tool.
Original PR description
Replace `this.env._t()` (not supported in 17.0) by `_t()`.
This fix corrects how numbers are formatted when displayed in various modules. A recent code reorganization moved number formatting logic to a shared utility, but some modules that display field values weren't updated to use the correct formatter that handles special cases. This fix ensures all field displays use the proper formatting function, preventing potential display inconsistencies.
Original PR description
Commit [1] moved (almost all of) the code of formatFloat from views/fields/formatters.js to core/utils/numbers, to make it accessible in the frontend. A formatFloat function was kept in formatters.js to handle the false case, which makes no sense in number utils, but is useful for fields. However, a lot of imports have been updated to use the numbers.js instead of formatters.js (i.e. they no longer benefit from the support of false), whereas they are actually formatting field values, so they should have kept using the formatFloat from formatters.js This commit adapts the places where the formatFloat to use must come from formatters.js, not numbers.js. [1] https://github.com/odoo/odoo/commit/054ca0a19aaf297f420a1b478b93ae26f1b943b8 task 3722043
The tax report was displaying a warning banner whenever draft accounting entries existed, even when those entries were just routine closing entries that don't require user attention. This fix removes the banner for closing entries only, ensuring users only see warnings for draft invoices and entries that actually need review. The change also improves performance by optimizing the search query.
Original PR description
On the tax report, a banner can be displayed if there exist some draft moves for the selected period. We don't want the banner to appear if the only draft move is a closing entry. The goal of the banner is indeed to warn the user if he still needs to pay attention to draft invoices/entries that might impact the report. We therefore exclude all closing entries from draft moves search. A bit of refactoring was necessary to only apply the logic to tax reports. A limit=1 has also been added on the search_count to improve performances. task-3682431 Forward-Port-Of: odoo/enterprise#55573 Forward-Port-Of: odoo/enterprise#55167
Fixed an issue where the invoice extraction system was incorrectly including box data in validation requests even when users didn't select them. Now boxes are only sent when actually clicked and their text matches the field value. This improves data accuracy for the AI model's learning process.
Original PR description
Previously, we were always returning a box in the validation request, even when no box was clicked by the user. Now, the box will only be part of the request if it was indeed clicked by the user and that its text matches the text of the field. This has little impact on the learning of the AI model as it was mostly relying on the text of the validated value, not its box. Forward-Port-Of: odoo/enterprise#55783 Forward-Port-Of: odoo/enterprise#55643
This update improves the appearance of product filters on the online store by removing the visible scrollbar that appeared when filters had many options. Users can still scroll through filter options, but the interface now looks cleaner without the scrollbar being displayed.
Original PR description
When filtering column had too much attributes, scrollbar would appear. Scrollbar was deleted but ability to scroll is left. task-3609062 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#145934