Hi,
We're running Odoo 17e entreprise on-prem.
I'm trying to develop an addon to be able to more easily handle the creation of worksheet templates and worksheet views.
We're in a situation where we need to recreate our quality worksheets when changes are made to them. The reason behind this is that worksheets need to stay exactly like they were when they were filled and modifying the views retroactively changes the worksheets already completed.
I was thinking that defining the fields for each worksheet template in xml in a module would save me a lot of time when updating those worksheet templates, as I can create a new model, copy-paste most of the date, make the changes to the views and upload the new version, thus keeping completed worksheet intact while using the new ones in the future.
I'm able to create a new worksheet template by creating a new worksheet.template record, but I'm having trouble figuring out how to add fields to the model created by that new worksheet record.
Is there a good way to do what I'm looking to do and is there a simpler way to keep already completed worksheet intact while making changes to future ones?
Edit: One of the constraint of the project is keeping the module as a data module. Python files are to be avoided.