liu 361ec83a94 复制来 | 4 years ago | |
---|---|---|
odtree | 4 years ago | |
odtree_hr | 4 years ago | |
odtree_product | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago |
Custom Tree Structure In ListView or KanbanView ,eg: Product category tree ,Department tree
treelist view:
<xpath expr="//tree" position="attributes">
<attribute name="categ_property">categ_id</attribute>
<attribute name="categ_model">product.category</attribute>
<attribute name="categ_parent_key">parent_id</attribute>
</xpath>
kanban view:
<xpath expr="//kanban" position="attributes">
<attribute name="categ_property">categ_id</attribute>
<attribute name="categ_model">product.category</attribute>
<attribute name="categ_parent_key">parent_id</attribute>
</xpath>
thanks for the opensource libs used in this module: https://github.com/zTree/zTree_v3 https://github.com/jquery/jquery https://github.com/odoo/odoo