Friday, April 16, 2021
1 change
Enhancements to existing features
Belgian payroll declaration files are now saved directly in Odoo, making it easier to keep a reliable history and access them without the Documents app. The 281.10 and 281.45 declaration processes were also corrected and updated so businesses can generate validated, compliant yearly reports more reliably.
Original PR description
Purpose ======= Each months or year, some reports have to be done to the state. Currently there were some wizards to generate the files (XML, PDF, XLS, ...), and a brige with the document application…
Purpose ======= Each months or year, some reports have to be done to the state. Currently there were some wizards to generate the files (XML, PDF, XLS, ...), and a brige with the document application to publish them in the Payroll Folder. However, this is problematic for the following reasons: - It is difficult to keep a clean history of what has been done, as the transient are garbage collected. - Customers without the document application cannot keep the files safely in their odoo db. - The integration with documents is not clean, it is possible to post the documents several times without even knowing that they are created. The idea of this PR is to convert all those Transient models into classic models, stored in the database. While doing this, it was noticed that the 281.10 and 281.45 declarations where obsolete/wrong because: - A XML file was generated for each employee instead of a global 281.10 declaration. The idea of the structured files is to declare the employee in batch. Instead of using a qweb template, the XML was built using etree, which is not clean at all, and difficult to maintain. - No XML file was generated for the 281.45 declaration. - The XML files weren't validated using a XSD file, and they were outdated / incomplete / wrong. - The PDF files were not valid anymore. Specification ========== 1/ Store the wizards to generate the 273S, 274.XX, 281.10 and 281.45 declarations. 2/ Update and fix the 281.10, 281.45 declaration flows. TaskID: - 2501286 - 2506143 - 2508086