Odoo Help

1

Creating Nested Project Category Tags via XML

By
Dave Burkholder
on 3/28/15, 2:25 PM 698 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?    

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 3/28/15, 2:25 PM
Seen: 698 times
Last updated: 10/10/15, 9:05 PM