Wednesday, November 15, 2023
1 change · 17.0
Resolved issues and error corrections
This fix resolves a technical error that prevented users in Belgium from exporting tax reports or posting tax closing entries. The issue occurred when certain tax conditions were met, causing the system to crash. By properly initializing the warnings system, users can now successfully complete these critical tax reporting tasks without encountering errors.
Original PR description
Problem: The user is unable to export or post closing entries due to a traceback that warnings is of None type. The method, _dynamic_check_lines, tries to assign an item to warnings which is a dict. However, since warnings was not initiliazed, it throws a traceback. Solution: Initialize warnings as an empty dict when it hits the failed_control condition This will unblock the user from exporting the tax report or posting the closing entry for the tax report. Steps to reproduce on Runbot(ALL): Switch to BE Company CoA Enable "0% EU S" purchase tax Create a vendor bill using this tax Try to post Tax Closing Entry for the period which includes the created vendor bill Receive technical error OR Try to export the Tax Report opw-3560681 Forward-Port-Of: odoo/enterprise#49887