Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all IndustriesInauguration Odoo Lyon
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Project hierarchic tree view?

Subscribe

Get notified when there's activity on this post

This question has been flagged
projectdisplaytree
3 Replies
17645 Views
Avatar
Alejandro Santana

Is it possible to display the full hierarchic tree of a project with several subproject levels and subtasks? (Both in 6.1 and 7.0)

I will put an example to show what I need and also what I am getting. Let's say we have this kind of multilevel project:

  • Project_1 (level 1)
    • Project_1_1 (n2)
  • - - Task_1_1_a (n2) (parent)
  • - - - Task_1_1_a_a (n3) (child)
    • Project_1_2 (n2)
  • - - Project_1_2_1 (n3)
  • - - - Task_1_2_1_a (n4)
  • - - - Task_1_2_1_b (n4) (parent)
  • - - - - Task_1_2_1_b_a (n5) (child)
  • - - - Task_1_2_1_c (n4)
  • - - - Task_1_2_1_d (n4)
  • - - Project_1_2_2 (n3)
    • Project_1_3 (n2)
  • Project_2 (n1)

As we can see, I can define a multilevel structure with projects-subprojects and tasks-subtasks, as layered as I want. But I cannot show them in a tree, folding and unfolding levels.

The only thing I was able to get is filtering by 'project', but with an unwanted result. That way I can display in 2 levels: 1-projects and 2-tasks. But that just places all projects in the same display level, whether they are parent or child. The same with tasks. Thus I completely loose a global vision and all gets confused.

This is what I get:

  • Project_1 (level 1)
  • Project_1_1 (n2)
    • Task_1_1_a (n2) (parent)
    • Task_1_1_a_a (n3) (child)
  • Project_1_2 (n2)
  • Project_1_2_1 (n3)
    • Task_1_2_1_a (n4)
    • Task_1_2_1_b (n4) (parent)
    • Task_1_2_1_b_a (n5) (child)
    • Task_1_2_1_c (n4)
    • Task_1_2_1_d (n4)
  • Project_1_2_2 (n3)
  • Project_1_3 (n2)
  • Project_2 (n1)

And surely the same happens in analytic contability too.

So... Is there a way to display the full tree? Any module? Anything?

5
Avatar
Discard
Sehrish

Try this: http://learnopenerp.blogspot.com/2020/07/create-organization-employee-hierarchy-tree-view-in-odoo.html

Avatar
08ARVASi Arvas International AB, Fredrik Arvas
Best Answer

Vertel has developed one module called: 
https://github.com/vertelab/odoo-project_scrum/tree/13.0/project_hierarchy

The module adds a "parent_id" to the project. This allows a hierarchy of projects. 

0
Avatar
Discard
Avatar
aitorsolozabal@gmail.com
Best Answer

hierarchy.py

#-*- coding: utf-8 -*-
from openerp import models, fields, api
class hierarchy(models.Model):
    _name = 'hierarchy'
    parent_id = fields.Many2one('hierarchy',string='Superior Level')
    code = fields.Char('Code',required=True)
    name = fields.Char('Name')
    child_ids = fields.One2many('hierarchy', 'parent_id',string='Sub Levels')


hierarchy_view.xml

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <!-- views -->
        <!-- form view -->
        <record id="view_form_hierarchy" model="ir.ui.view">
            <field name="name">hierarchy Form</field>
            <field name="model">hierarchy</field>
            <field name="arch" type="xml">
                <form>
                    <group>
                        <field name="parent_id"/>
                        <field name="code"/>
                        <field name="name"/>
                        <field name="child_ids"/>
                    </group>
                </form>
            </field>
        </record>
        <!-- tree ( tree ) view -->
        <record id="view_tree_hierarchy" model="ir.ui.view">
            <field name="name">hierarchy Tree</field>
            <field name="model">hierarchy</field>
            <field name="field_parent">child_ids</field>
            <field name="arch" type="xml">
                <tree toolbar="1">
                    <field icon="icon" name="code"/>
                    <field name="name"/>
                </tree>
            </field>
        </record>
        <!-- Actions -->
        <record model="ir.actions.act_window" id="action_hierarchy">
            <field name="name">hierarchy</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hierarchy</field>
            <field name="view_type">tree</field>
            <field name="domain">[('parent_id','=',False)]</field>
        </record>
        <!-- Menu items -->
        <menuitem id="root_hierarchy" name="hierarchy"/>
        <menuitem id="menu_hierarchy" name="Menu" parent="root_hierarchy"/>
        <menuitem id="hierarchy_opcion" name="hierarchy" parent="menu_hierarchy" sequence="20" action="action_hierarchy"/>
    </data>
</openerp>

0
Avatar
Discard
Avatar
Gaston Huot
Best Answer

Did you find the answer to your question ?

I also want to do that (by the way this forum is not that good for resolving issues? There is no answer to your question. The LinkedIn group seems, at first, better for that)

Thanks,

GH

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Odoo- Enterprise 17 - Project - Displaying subtasks in list view
project
Avatar
Avatar
Avatar
3
May 26
837
Odoo 18 QWeb Invoice: How to keep totals & payment section in footer across multiple pages?
project
Avatar
0
Apr 26
9
Topmenu in standard view of projects Solved
project
Avatar
Avatar
1
May 26
1117
How can I show all unscheduled tasks in the sidebar of the calendar view and plan them with drag and drop?
project
Avatar
0
Feb 26
973
We cant duplicate my Odoo Online database
project
Avatar
0
Feb 26
940
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now