Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.23 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.23 KB

odtree

Custom Tree Structure In ListView or KanbanView ,eg: Product category tree ,Department tree

product kanview(listView) in the category tree

empoyee kanview(listView) in th department tree

usage

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