Thursday, April 9, 2026
8 changes · 17.0
Resolved issues and error corrections
This update corrects a bug where negative discounts were incorrectly shown in Field Service reports. The fix ensures that negative discount values are properly handled during report generation, preventing inaccurate reporting and improving data clarity. This resolves an issue impacting sales reporting accuracy.
Original PR description
Steps to produce: --- - Install the `Field Service` module. - Enable discounts and Worksheets from settings. - Navigate to `Field Service > Open task > Add product`. - Open related sale order and `apply negative discount`. - Return to the task > print the `Field Service Report`. Issue: --- - Negative discount is printed in the report. Root cause: --- - The report generation logic does not check for negative discounts. As a result, negative discount values are being rendered as-is in the generated PDF. Solution: --- - Added a condition to handle negative discounts during report generation. Before: --- <img width="774" height="107" alt="image" src="https://github.com/user-attachments/assets/bb4bf646-1462-4f19-b977-3450f9a5f100" /> After: --- <img width="755" height="110" alt="image" src="https://github.com/user-attachments/assets/1bd2a68d-1fb8-4b5a-97ff-7ef7098d222c" /> community PR: https://github.com/odoo/odoo/pull/255735 opw-6061568
This update fixes a labeling error in the Dutch Profit & Loss report. The 'Cost of Goods Sold' and 'Cost of Sales' labels were reversed, misrepresenting the accounting definitions. This change ensures the report accurately reflects Dutch accounting standards and provides correct financial reporting.
Original PR description
**Steps to reproduce:** 1. Install l10n_nl_report. 2. Go to Accounting → Configuration → Accounting Reports. 3. Open Profit and loss report (tags). 4. Click on Cost of Goods Sold or Cost of Sales and…
**Steps to reproduce:** 1. Install l10n_nl_report. 2. Go to Accounting → Configuration → Accounting Reports. 3. Open Profit and loss report (tags). 4. Click on Cost of Goods Sold or Cost of Sales and check the related codes. **Issue:** In the Dutch Profit and Loss report, the names "Cost of Goods Sold" and "Cost of Sales" are swapped. Currently: - Cost of Goods Sold is linked to code: NL_SALE - Cost of Sales is linked to code: NL_COGS According to Dutch accounting standards: - Cost of goods sold should represent direct costs ([mapping to NL_COGS / 7xxx](https://github.com/odoo/odoo/blob/master/addons/l10n_nl/data/template/account.account-nl.csv#L288-L317)). - Cost of sales should represent indirect selling costs ([mapping to NL_SALE/45xx](https://github.com/odoo/odoo/blob/master/addons/l10n_nl/data/template/account.account-nl.csv#L249-L260)) **Cause:** The names were incorrectly applied, leading to reversed definitions between Cost of Goods Sold and Cost of Sales. See: https://www.investopedia.com/terms/c/cogs.asp **Solution:** Swap the definitions so that: - Cost of Goods Sold is correctly linked to NL_COGS - Cost of Sales is correctly linked to NL_SALE Related community PR : https://github.com/odoo/odoo/pull/245185 **opw-5407885**
This update fixes an issue where translated strings in the Odoo Enterprise module didn't consistently reflect changes made to group names. By adding specific identifiers, the system now correctly exports and translates these overridden group names, ensuring accurate translations across the platform. This improves the consistency of our software's language.
Original PR description
The `account_accountant` module overrides the English name of several `res.groups` records owned by `account`. Without `account_accountant`-scoped XMLIDs for those records, the overridden names are never exported into this module's POT file. At runtime, `account`'s translations are loaded instead, which no longer match the overridden English source strings. We fix this by registering additional XMLIDs under `account_accountant` so the overridden names get translated independently.
This update resolves an issue where material resources with assigned roles were incorrectly displayed when filtering by employees in the Planning app. The fix improves the filter domain to accurately exclude these resources, ensuring that only employee-type resources are shown. This enhances the accuracy of the Planning view and simplifies resource management.
Original PR description
Steps to Reproduce: 1. Open the Planning app. 2. Go to Configuration -> Materials. 3. Set a role on either the demo material resource laptop or toolkit. 4. Go back to the Planning view. 5. Apply the view filter employee (filter by Employees). Issue: The material resource with a role should not be visible, but it is still present. Current behaviour: When filtering the Planning view by Employees, material resources with an assigned role remain visible. Expected behaviour: Material resources with an assigned role should be excluded from the Planning view when filtered by Employees — only employee-type resources and resources on which role is not set should appear. Fix: Improved the filter domain so unnecessary data are excluded. Task-4526989
This update fixes an issue where the Helpdesk return wizard incorrectly displayed receipts as available pickings. The change specifically excludes receipts from the wizard's domain, ensuring that only deliveries are shown, streamlining the return process for users. This resolves a bug present in versions prior to 19.0.
Original PR description
Steps to reproduce: - 1. Create a Sale Order for a customer and fully process the delivery. 2. Create a Helpdesk ticket for that customer. 3. From the ticket, click the 'Return' button to open the wizard. 4. Select the sales order or open the 'Delivery to Return' dropdown. Issue: - The list of available pickings shows both receipts and deliveries operations. Fix: - The domain for the return wizard is updated to explicitly exclude receipts. Note: - This bug is present until saas-18.4. From 19.0 onward it is already fixed in this PR: https://github.com/odoo/enterprise/pull/90371 task-5075205
This update fixes a labeling error in the Dutch Profit & Loss report, ensuring 'Cost of Goods Sold' and 'Cost of Sales' are correctly associated with their respective accounting codes according to Dutch standards. This ensures accurate reporting and compliance with local regulations.
Original PR description
**Steps to reproduce:** 1. Install l10n_nl_report. 2. Go to Accounting → Configuration → Accounting Reports. 3. Open Profit and loss report (tags). 4. Click on Cost of Goods Sold or Cost of Sales and…
**Steps to reproduce:** 1. Install l10n_nl_report. 2. Go to Accounting → Configuration → Accounting Reports. 3. Open Profit and loss report (tags). 4. Click on Cost of Goods Sold or Cost of Sales and check the related codes. **Issue:** In the Dutch Profit and Loss report, the "Cost of Goods Sold" and "Cost of Sales" names are swapped. According to Dutch accounting standards: - Cost of goods sold should represent direct costs ([mapping to NL_COGS / 7xxx](https://github.com/odoo/odoo/blob/master/addons/l10n_nl/data/template/account.account-nl.csv#L288-L317)). - Cost of sales should represent indirect selling costs ([mapping to NL_SALE/45xx](https://github.com/odoo/odoo/blob/master/addons/l10n_nl/data/template/account.account-nl.csv#L249-L260)) **Cause:** In [PR : #157362 ](https://github.com/odoo/odoo/pull/157362/files#diff-1ba769f7e47f7a941e45b6c662ec2a0558272e9fe8bdbfed368f261c8e43aa5dR55), The names were swapped. While the technical codes and expressions correctly targeted the intended account ranges **Solution:** Updated account_tag_7 and account_tag_10 to match corrected naming convention. Related Enterprise PR : https://github.com/odoo/enterprise/pull/103150 **opw-5407885**
This update resolves a technical issue during the migration of accounts for the Danish localization (l10n_dk) module. The previous code incorrectly assumed all accounts had a 6-character code, causing errors. This fix allows the system to properly handle accounts without a code, ensuring accurate accounting and reporting for Danish businesses using Odoo.
Original PR description
From https://github.com/odoo/odoo/pull/256541.
```yml
File "/home/.../odoo/addons/l10n_dk/migrations/1.4/end-migrate.py", line 102, in migrate
if len(account.code) < 6:
TypeError: object of type 'bool' has no len()
```
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis update ensures that negative discounts applied to sales orders are consistently displayed in both the portal preview and generated PDF reports. Previously, the PDF reports showed negative discounts while the portal preview did not, due to a discrepancy in how discounts were filtered. This change aligns the report output with the portal view for a more accurate representation of sales data.
Original PR description
Steps to produce: --- - Install the `Sales` module. - Enable discounts from settings. - Create a Sale Order with a negative discount on an order line. - Preview the Sale Order and click on the view…
Steps to produce: --- - Install the `Sales` module. - Enable discounts from settings. - Create a Sale Order with a negative discount on an order line. - Preview the Sale Order and click on the view details button. Issue: --- - Negative discount values are not shown in the preview (portal view), but they are displayed in the generated PDF. Root cause: --- - At [1], the portal template includes a condition to display discounts only when they are greater than 0, while the report templates lack this check, leading to inconsistent behavior. Solution: --- - Applied the same condition in the report templates to align the PDF output with the portal preview behavior. Before: --- <img width="787" height="136" alt="image" src="https://github.com/user-attachments/assets/d32311be-4aec-4d6f-b905-d5e52f712ba4" /> After: --- <img width="775" height="139" alt="image" src="https://github.com/user-attachments/assets/2614a8ad-dca6-49ca-b720-5c234aa91cf6" /> [1]https://github.com/odoo/odoo/blob/0f463fd247d2f5da79d6ec2b6bec18774f6f600b/addons/sale/views/sale_portal_templates.xml#L539 Enterprise PR: https://github.com/odoo/enterprise/pull/111916 opw-6061568