Tuesday, May 28, 2024
2 changes
Resolved issues and error corrections
This fix resolves a critical bug in the Colombian electronic invoicing system that was preventing XML documents from being generated. The issue occurred when processing tax information, causing the system to crash on the second attempt. This fix ensures that electronic invoices can be successfully created without errors.
Original PR description
The issue: Inside the function _l10n_co_edi_generate_xml, the variable 'tax' at line 272 will be overridden by the 'account.tax' record which leads to a traceback in the second iteration, saying 'account.tax' object doesn't have a 'get' attribute Expected behavior: To not throw a traceback and generate the xml opw-3899575 Forward-Port-Of: odoo/enterprise#62290
Fixed a critical issue where payroll imports from Employment Hero would crash if a tax code didn't have a matching configuration in the system. The system now gracefully handles unmatched tax codes instead of throwing an error, allowing payroll data to be imported successfully even when tax code mappings are incomplete.
Original PR description
Issue : If a fetched payrun uses a taxCode and no employment_hero_tax_identifier has been configured on an account.tax to match it, it will raise an ValueError (iteration on an empty list). Solution : Give a default value to next() Version : 17.1