Tuesday, February 13, 2024
1 change · 17.0
Code cleanup and technical improvements
The intrastat report's query building function has been reorganized and simplified to improve code clarity and reliability. This cleanup helps prevent technical issues with the system's security checks and makes the code easier to maintain going forward.
Original PR description
`_build_query` is a rat's nest of randomly sprinkled `SQL`, which seems to end in the sql injection checker getting confused and non-deterministic. Do some cleaning to try and make it more understandable for the linter. Forward-Port-Of: odoo/enterprise#56367