Monday, October 28, 2024
12 changes
1 change
Resolved issues and error corrections
Fixes an issue where tracked marketing links could fail when opened by visitors who were not logged in. Required cookies can now be set safely in this situation, preventing errors and improving access to tracked links.
Original PR description
Currently, an exception is generated when the user tries to open the UTM link by following steps. - Install 'website_links' (for creating a link tracker). - Go to Link Tracker > New > Fill all…
Currently, an exception is generated when the user tries to open the UTM link by following steps. - Install 'website_links' (for creating a link tracker). - Go to Link Tracker > New > Fill all details - Set the target URL as 'http://localhost:8069/odoo' - Copy Tracked URL > Open url in incognito mode or new browser error: `ValueError: Expected singleton: res.users()` This is because when we open this type of link, the code line [1] tries to set a cookie, and since we have not logged in (not even have a dummy user) at the time of checking, the method `has_group` generate an error from line [2] because `self(user)` is required. In the previous version, the `has_group` method did not require self, but after a code refactor with https://github.com/odoo/odoo/commit/cb31d4352c741a5f8a927a65debb8e027e87df22#diff-16e37db365c1ea1f2e6c79aeb60c80f68f1a5c75970e8e3f198eb18af56278ddL1037-L1043, it needed a record in self. This commit will fix the above issue by allowing cookie when its type is required or the request environment has user. [1]- https://github.com/odoo/odoo/blob/871d20d8ffb00737fe8192223385cdad69fe12e1/addons/utm/models/ir_http.py#L21 [2]- https://github.com/odoo/odoo/blob/871d20d8ffb00737fe8192223385cdad69fe12e1/odoo/addons/base/models/res_users.py#L1133 sentry-5281961509
3 changes
Enhancements to existing features
Account reports now support broader keyboard navigation, helping users move through filters, report lines, and actions more efficiently without relying on the mouse. This makes financial reporting workflows faster and more accessible for users who prefer or need keyboard-driven interaction.
Original PR description
This PR enhances the keyboard navigation functionality in account reports, allowing users to perform various actions more efficiently using keyboard shortcuts. For a full list of shortcuts, please refer to the [Documentation](https://docs.google.com/spreadsheets/d/11kNokL51XO8ZoOKBTLMNlIdECmtkLzVpbD1Xa9-Wt9Q/edit?usp=sharing) Task ID: 3769944
4 changes
Enhancements to existing features
The chatter search experience now opens the search field directly in place, keeping the conversation visible until the user starts searching. This makes it easier for users to look up messages without losing context in the thread.
Original PR description
Purpose of this commit: Previously, to search for a message in the chatter, users needed to click the search icon, which would open the search panel and hide the thread. With this update, clicking the search icon now opens only the search input, keeping the thread visible until the user actively begins a search taskid-4260440 Backport of https://github.com/odoo/odoo/pull/185301
4 changes
New functionality added to Odoo
This update enables the creation of Factura B invoices for customers located outside Argentina. This is required to comply with Argentinian tax regulations for international sales, ensuring our system supports businesses operating in the Latin American market. The change leverages existing logic for foreign sales to streamline the process.
Original PR description
### Description of the issue/feature this PR addresses: It is needed to be able to create Factura B for a foreign customer. Legal reference: Here is some useful documentation : https://servicioscf.afip.gob.ar/publico/abc/ABCpaso2.aspx?id=8555970 https://www.afip.gob.ar/EspaciosdeDialogoInstitucional/documentos/Acta-15-Espacio-de-Dialogo-AFIP-Camaras-Empresariales-14-11.pdf ### Current behavior before PR: It is not possible to create Factura B for a foreign customer. ### Desired behavior after PR is merged: It is possible to create Factura B for a foreign customer. Task Adhoc side: 30008 Task latam side: 913 Forward-Port-Of: odoo/enterprise#71562
The Sign app has been updated to work with a newer PDF viewing engine. This helps keep document preview and signing flows reliable and aligned with current PDF handling improvements.
Original PR description
This commit adapts some code to follow the changes made in PDF.js Changelogs: * https://github.com/mozilla/pdf.js/releases/tag/v4.4.168 * https://github.com/mozilla/pdf.js/releases/tag/v4.5.136 * https://github.com/mozilla/pdf.js/releases/tag/v4.6.82 * https://github.com/mozilla/pdf.js/releases/tag/v4.7.76 task-4255281
A new GSTR-1 section mapping field is added to customer invoice records in Indian reporting. This helps businesses compare invoice data against GSTR reporting more efficiently and improves accuracy during tax review.
Original PR description
With this PR, gstr-1 section mapping field will be added in `account.move`, enabling efficient cross-verification of user-provided data with GSTR Reporting. task-3360018
Online delivery orders now handle discounts and taxes on extra charges such as packaging fees more accurately. Rider status updates from delivery platforms are also aligned with the latest data format, helping restaurants keep order tracking reliable.
Original PR description
In this commit: === - Discounts for online delivery orders are now handled. - Tax is now applied to charges (e.g., packaging charges). - The rider_status_updated payload has been updated. task-4075113
Resolved issues and error corrections
Fixes an error that occurred when HR users selected multiple employees and chose “Create a Time Off” from the Presence Control menu. The action now uses the appropriate multi-employee wizard, allowing time off to be created for several employees without a system traceback.
Original PR description
Steps: - Install the hr_presence module - open employee list view - Click on the `Create a Time Off` from Presence Control Menu Description of the issue/feature this PR addresses: In the HR module, When selecting multiple employees from the list view and clicking `Create a Time Off` in the Presence Control menu, a traceback error occurs. Cause: The error is caused by opening the hr.leave form view, which contains the employee_id field that allows the selection of only one employee. Since multiple employees are selected, a singleton error is triggered. Fix: This PR resolves the issue by updating the wizard of the model `hr.leave.generate.multi.wizard`, enabling the creation of time off for multiple employees. task-4207392
Code cleanup and technical improvements
This refactoring streamlines how IoT Boxes communicate with Odoo databases across delivery, POS, manufacturing, and self-order workflows. It should make device connectivity easier to maintain and more consistent, reducing future complexity without introducing a new business feature.
Original PR description
The communication between the IoT Box and a DB can be: - Longpolling, - Websocket, - Simple fetch from one side or the other. We refactored all this in order to simplify the communication. Task: 4283647
Resolved issues and error corrections
This update resolves a bug in the Balance Sheet report where a previously set threshold for prefix groups was incorrectly restored when opening variants. This prevented the report from calculating correctly with certain configurations. The fix ensures the threshold is always initialized from the appropriate field, improving report accuracy.
Original PR description
To reproduce the issue: 1) Set a prefix group threshold of 2000 on the Generic Balance Sheet 2) Modify the groupby of the Receivable line of that report so that it does account_id,id 3) Duplicate the…
To reproduce the issue:
1) Set a prefix group threshold of 2000 on the Generic Balance Sheet 2) Modify the groupby of the Receivable line of that report so that it does account_id,id 3) Duplicate the report ; modify the duplicate to:
- Make it a variant of the Generic BS
- Set its prefix group threshold to 3 4) Ensure at least 3 move lines exist in the same period for the Receivable account 5) Open the Balance Sheet. By default, the Generic one will be shown 6) Switch to the duplicate you made in 3).
7) Unfold both levels of the Receivable line.
====> Prefix groups aren't used, while the number of move lines reaches the threshold value.
This happens because the variant is opened from the Generic BS. So, options have first been generated and kept in the session for the Generic BS. When openin the variant, it receives the previously generated options as previous_options, and restores the threshold originally defined on the Generic BS.
We don't want to restore the threshold for previous options, so we just remove that code and now always initialize it to the value contained in the apporpriate field when computing the options.This update resolves an issue where delivery chatter was incorrectly posted to multiple pickings after a sale order was validated with a new delivery. The fix ensures chatter is only logged on the picking that was successfully validated, improving order tracking accuracy. This prevents confusion and ensures data consistency.
Original PR description
**Current behavior:** Using the DHL delivery shipping module, if you complete a sale order's delivery and then add new product to the order and, again, validate the new delivery, the shipping chatter…
**Current behavior:** Using the DHL delivery shipping module, if you complete a sale order's delivery and then add new product to the order and, again, validate the new delivery, the shipping chatter will be posted in all of the sale order's pickings. **Expected behavior:** The chatter should only be posted in the picking which was actually validated. **Steps to reproduce:** *Install delivery_dhl and l10n_be_hr_payroll* *Swap to My Belgian Company* *Duplicate the My Belgian Company partner record, giving it new unique values where necessary (VAT, address, etc.)* 1. Create a new sale order to the copied Belgian company 2. Add some storable product and add DHL EU shipping to the order (only DHL connector working) 3. Confirm the order, and validate the delivery 4. Back on the sale order, add another order line and save 5. Validate the new delivery, see that the delivery chatter is posted on both deliveries **Cause of the issue:** The message is currently logged on `sale_id.picking_ids`. **Fix:** Change the line in question to only log the message on the currently iterated over picking, as well as any relevant, previously created ones (e.g., in a multistep route context). opw-4059145 Forward-Port-Of: odoo/enterprise#71441
Accounting reports now properly translate filter options into different languages. Previously, filter labels like "Only Show Unreconciled Entries" were not being translated when users switched to languages like Danish. This fix ensures all filter options display in the user's selected language in both screen reports and PDF exports.
Original PR description
The problem: In the accounting reports, filter options were not being translated. Steps to reproduce: 1. Install and change to the Danish language. 2. Navigate to Accounting > Reporting > Partner ledger (Kontoudtog) 3. Activate the filter "Only Show Unreconciled Entries" (Vis kun ikke udlignede posteringer) 4. Generate the PDF report. Why it was happening: The array `extra_options` was built dynamically by concatenating raw python strings to it. Those raw strings will not be translated. The fix: Now, we create local variables for each string, using the syntax `<t t-set="label_raw_string">Raw String</t>` which makes the string `label_raw_string` translatable, then we append it to `extra_options`. opw-4213562