Sunday, September 7, 2025
3 changes · master
Resolved issues and error corrections
The Swiss payroll occupation report can no longer be accidentally edited from the list view. This prevents users from triggering system errors while keeping the report available for viewing and analysis.
Original PR description
The model `l10n.ch.occupation` is backed by an aggregated SQL view (GROUP BY). PostgreSQL does not support inserts or deletes on such views, so exposing Create/Delete in the UI led to errors. This change makes the report safe to use by disabling creation and deletion on the list view (`create="0" delete="0"`), keeping it read-only while fully browsable. task-5042279 Forward-Port-Of: odoo/enterprise#93523
The Spanish Generic Tax Return Excel export now shows dates in the expected day/month/year format instead of month/day/year. This prevents confusion and helps Spanish accounting reports match local date conventions.
Original PR description
Changed date format from MM/dd/yyyy to dd/MM/yyyy in reports. An issue with the date formatting for the exported Excel file of the Generic Tax Return report for Spain. In the XLSX file, the dates are…
Changed date format from MM/dd/yyyy to dd/MM/yyyy in reports. An issue with the date formatting for the exported Excel file of the Generic Tax Return report for Spain. In the XLSX file, the dates are generated in the mm/dd/yyyy but they should be generated in the dd/mm/yyyy format. Steps to reproduce this error: 1. Create a new database using Odoo version 18. 2. Activate the module: “Spain - Accounting (PGCE 2008)” (l10n_es). 3. Create a new company and set Spain as the country. 4. Create a new quotation and select the company created in step 3. 5. Confirm the invoice generated from the quotation. 6. Go to Accounting → Reporting → Tax Report and select "Generic Tax Report". 7. Click the gear icon and select "VAT Record Books (XLSX)". <img width="960" height="540" alt="Ticket_Image_Editing (14)" src="https://github.com/user-attachments/assets/7ef6b8ec-4c31-4d4a-8724-d197fa177bf2" /> OPW https://www.odoo.com/es_ES/my/tasks/5010210 MT-10457 @moduon Forward-Port-Of: odoo/enterprise#92158
This update removes old, unused settings fields from the Chilean reporting module. It keeps the system cleaner and reduces the risk of confusion or maintenance issues without changing current business workflows.
Original PR description
Before this PR: fields for l10n_cl_reports had been deprecated by other commits, but they weren't removed from models. After this PR: res_company.py and res_config_settings.py with those fields removed. Not used anymore.