Daily updates from Odoo
Friday, December 6, 2024
7 changes · 17.0
Resolved issues and error corrections
This update ensures Odoo complies with Mexican tax regulations regarding invoices for national sales. Specifically, it adds the customs emission date to invoice lines, fulfilling requirements outlined in the CFDI guide. This change is necessary for accurate tax reporting in the Mexican market.
Original PR description
To comply with Mexican tax regulations (Article 29-A, section VII of the Fiscal Code and the CFDI guide, pg. 22), both the customs number and its emission date must be included in product descriptions for national sales. This commit adds the date(s) of the emission of the customs number(s) to every customer invoice line label task-4132754 Forward-Port-Of: odoo/enterprise#74475
This update resolves an issue where cancelled rental orders were incorrectly showing as 'reserved' in the schedule view. The fix changes how the system identifies the status of cancelled rental lines, ensuring they accurately reflect their 'cancelled' state. This improves clarity and accuracy for users managing rental orders.
Original PR description
Versions -------- - 16.0+ Steps ----- 1. Create a rental order; 2. cancel said rental order; 3. go to Schedule; 4. change search to show all rental orders; 5. hover over cancelled rental order. Issue ----- It's still showing its status as 'reserved'. Cause ----- The `report_line_status` field assumes any line that isn't picked up or returned is reserved. Solution -------- If the order's state is `cancel`, display the report line as "Cancelled". opw-4342420 Forward-Port-Of: odoo/enterprise#75066
This update resolves an issue where the system incorrectly identified VAT numbers with dots (like BE1234.678.28) during SODA file imports. The fix adjusts the underlying regex to correctly validate Belgian VAT numbers, ensuring accurate company matching and import processes. This prevents import errors and improves data accuracy.
Original PR description
Steps to reproduce: 1. Have a VAT number (or company registry) with dots (e.g.: BE1234.678.28) 2. Import a valid SODA file with the same VAT number 3. Error: "The imported document doesn't seem to correspond to this company's VAT number nor company id" Why it happens: This happens because the regex was taking only the first matching group (1234 in the example above). Solution: Instead of searching the first group of the regex, we can subtract all chars and only keep digits to have a valid Belgian VAT number that can be used when checking correspondence between the company VAT and the imported SODA file VAT. opw 4347926 Forward-Port-Of: odoo/enterprise#75111
This update streamlines the handling of Excel files (xlsx) within Odoo Enterprise. The previous process created unnecessary attachments and conflicts with computed fields, leading to inefficiencies. This fix simplifies the process by directly exploring the Excel file's structure, resulting in faster and more reliable document imports.
Original PR description
The multipage computation of xslx files was a bit overkill as it would convert the xlsx file to an o-spreadsheet json friendly form where it could simply explore the zip files. Furthermore, that convertion would create attachments for each media file present in the xlsx file. This is bad in 2 ways: - the created attachment would never be used again - we were creating attachment while calling a computed field (read/write mix is bad) Task-4213183
This update resolves an issue where newly added form fields in Odoo's Web Studio were incorrectly placed at the end of the form instead of the beginning. The fix ensures that new fields are inserted at the start of the sheet, improving the user experience and preventing unexpected form layouts. This change ensures consistent and predictable form design.
Original PR description
Steps to reproduce ================== - Open any form view - Drag and drop a new html field at the start of the form view => It goes to the bottom Cause of the issue ================== The generated xpath was `<xpath expr="//form[1]/sheet[1]" position="inside"/>` This puts the new element at the end of the sheet Solution ======== If we want to insert something at the start of the sheet, we need to put it before it's first child. If the sheet is empty, we can use inside like previously opw-4339407
This update fixes an issue where bank statement files with a date of '000000' caused parsing errors. The change allows the system to correctly process these files by using a standard fallback date, ensuring accurate import of bank transaction data. This improves the reliability of importing bank statements.
Original PR description
Add check if date string is not equal to "000000" before parsing it, in record types that were missing this check. Some banks provide CODA files with the date set to "000000" which caused the `_parse_bank_statement_file` method to raise an exception and fail to parse such files. Using the `statement['date']` as a fallback in such case, as it is already used for `balance_start_date` and `transactionDate` fields. task-4348031 Forward-Port-Of: odoo/enterprise#74640
This update resolves an issue where the navigation menu and breadcrumbs disappeared after purchasing a reward on the Rewards page. The fix utilizes a 'soft reload' to prevent the page from resetting and maintaining consistent navigation for users. This improves the user experience and ensures seamless browsing.
Original PR description
Steps: - Go to the Rewards page - Buy a reward - Breadcrumb and navigation menu were disappearing after the purchase Cause of the issue: - Page reload was resetting the breadcrumb and navigation Fix: - Used a soft reload instead of a full page reload to prevent the reset and preserve the breadcrumb and navigation menu task-4266538