Thursday, May 2, 2024
3 changes
Resolved issues and error corrections
This update fixes Colombian electronic invoice validation issues that arose from DIAN's Anexo 1.9 regulatory changes effective May 1st. The system now correctly handles currency-specific sections and adds required tags for credit and debit notes without referenced invoices, ensuring your Colombian invoices pass all regulatory validations.
Original PR description
Issue: DIAN activated the changes of Anexo 1.9 on May 1st. Currently our documents fail some (new) validations: * The TDC section should only be exported when the invoice is not in COP (since it is used for exchange rate information) * New tags ENC_11 and ENC_12 are needed in case there is no referenced invoice on a debit or credit note. (example discounts for early payments or discounts for rebates) Fix: This commit fixes these issues s.t. the validation passed again. * The TDC section is only displayed if invoice is not in company currency (assumed to be 'COP' anyway in more places) * The new ENC_11 and ENC_12 tags are added (conditionally) **manual forward port** of https://github.com/odoo/enterprise/pull/61841
This fix resolves a critical issue preventing upgrades to versions 16.0 and 17.0 in the Norwegian localization module. The "Net profit/Loss for the Year" report had conflicting settings that were causing system errors during installation. The fix removes the incompatible grouping setting to allow the system to process the report correctly.
Original PR description
`Net profit/Loss for the Year` report.line has now an aggregation expression[1] which cannot have a groupby. But as the groupby field was removed instead of set to `eval=False`. The groupby is still there and blocking upgrades to 16.0 and 17.0
[1] https://github.com/odoo/enterprise/pull/52157
```
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 567, in _tag_root
raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing /home/odoo/src/enterprise/17.0/l10n_no_reports/data/profit_loss.xml:3
Groupby feature isn't supported by aggregation engine. Please remove the groupby value on 'Net profit/Loss for the Year'
View error context:
'-no context-'
```
Forward-Port-Of: odoo/enterprise#61445This update resolves a critical bug that prevented new users from logging in through LDAP authentication when the system was configured to automatically create user accounts. Previously, the system would crash with an error when an LDAP user without an existing account attempted to log in. This fix ensures that the automatic user creation process works smoothly, allowing organizations using LDAP authentication to onboard new users without manual intervention.
Original PR description
Steps: - Set up LDAP authentication with Create User enabled and a Template User set - Log in with an LDAP identity that doesn't have an account yet Get odoo.exceptions.MissingError: Record does not exist or has been deleted See https://github.com/odoo/odoo/issues/41060 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#162456