This question has been flagged
2785 Views

I have a problem that I think should be easy, but not quite nailing it. I want to create Project Tags when installing my module, and that's easily done.



<record id="hardware_issue" model="project.category">
<field name="name">Hardware/field>
</record>
<record id="software_issue" model="project.category">
<field name="name">Software/field>
</record>


But I would like to have the Hardware / Software tags be the parent_id of tags. But I don't know what the integer will be, so I can't assign a random int for the parent_id field of another tag. Does that mean it's not possible to create nested tags in XML?    

Avatar
Discard