Daily updates from Odoo
Navigate
Branch
Sunday, September 21, 2025
4 changes
1 change
Resolved issues and error corrections
The Spanish Mod 347 tax report now includes withholding tax lines when calculating report totals. This prevents understated amounts for affected customer or supplier transactions, improving accuracy for Spanish tax declarations.
Original PR description
Withholding taxes should be taken into account in mod347 tax report. Steps: - Create a bill for a spanish customer - Set the amount of 40000, tax 21% and 15% withholding tax - Go to mod347 tax report -> Line "B - Sales of goods and services greater than 3.005,06 €" is showing 42,400.00 instead of 48,400.00 (same goes for other lines with similar configuration) Before this commit, custom engines domains were only including aml with payable or receivable account. With this commit, we include tax lines that are of type 'retencion' in the custom engines domains. opw-4448662 Forward-Port-Of: odoo/enterprise#94338
1 change
Resolved issues and error corrections
Spanish mod347 tax reports now include applicable withholding tax lines when calculating report totals. This prevents underreported amounts for invoices or bills with withholding taxes, helping businesses produce more accurate tax declarations.
Original PR description
Withholding taxes should be taken into account in mod347 tax report. Steps: - Create a bill for a spanish customer - Set the amount of 40000, tax 21% and 15% withholding tax - Go to mod347 tax report -> Line "B - Sales of goods and services greater than 3.005,06 €" is showing 42,400.00 instead of 48,400.00 (same goes for other lines with similar configuration) Before this commit, custom engines domains were only including aml with payable or receivable account. With this commit, we include tax lines that are of type 'retencion' in the custom engines domains. opw-4448662 Forward-Port-Of: odoo/enterprise#94338
1 change
Resolved issues and error corrections
A bug prevented extra fees from being added when rented items were returned late. The fix ensures late return charges are calculated correctly, helping businesses recover agreed delay fees and keep rental invoicing accurate.
Original PR description
In [^1], during a small refactor of the `sale.order.is_late` method to only account for logistic delays rather than rental delays, the rental extra delay margin computation was moved to the `sale.order.line._generate_delay_line` method. However, the computation used the utility class `relativedelta` instead of `timedelta`, which transformed the final rental duration into a `relativedelta` object. This object internally stores second durations differently than a `timedelta`. While `timedelta` stores durations as `days` and remaining `seconds`, `relativedelta` splits the information into `days`, `hours`, `minutes`, etc. Since rental orders only account for hours, the `seconds` field was null, resulting in no extra delay fee being added to the order upon return. This commit fixes the issue by using `timedelta` as expected. [^1]: https://github.com/odoo/enterprise/pull/88689
1 change
Resolved issues and error corrections
Spanish Mod 347 tax reports now include withholding tax lines when calculating report totals. This prevents understated amounts in relevant sales and services lines, helping businesses submit more accurate Spanish tax declarations.
Original PR description
Withholding taxes should be taken into account in mod347 tax report. Steps: - Create a bill for a spanish customer - Set the amount of 40000, tax 21% and 15% withholding tax - Go to mod347 tax report -> Line "B - Sales of goods and services greater than 3.005,06 €" is showing 42,400.00 instead of 48,400.00 (same goes for other lines with similar configuration) Before this commit, custom engines domains were only including aml with payable or receivable account. With this commit, we include tax lines that are of type 'retencion' in the custom engines domains. opw-4448662 Forward-Port-Of: odoo/enterprise#94338