Odoo Help

4 Answers
2/19/18, 4:42 AM

You can add a new field in tree view usig view inheritance. The purpose of inheritance or why we need inheritance is given below:

  1. To change attributes of some fields which exists on existing/custom model (e.g. making fields readonly,invisible)

  2. To add/modify/delete old or new fields in existing/custom model (e.g. Product, Sales, HR, Fleet Management, Attendance modules model etc)

  3. We can also add buttons in already existing/custom model (form and tree) view by using inheritance

Get complete code of view and model inheritance: http://learnopenerp.blogspot.com/2018/01/inheritance-in-models-and-views.html

1 Comment
2/19/18, 4:44 AM

To add new field in tree view you need to inherit tree view of parent view:



Daniel Sudrata
5/16/18, 9:15 AM

Hi Aziz, are you interested to become one of our team in Indonesia?


ayman mohammed adam

--ayman mohammed adam--
--ayman mohammed adam--

ayman mohammed adam
5/19/16, 7:49 AM


please try this code

<xpath expr="//notebook/page[@string='Timesheets']/

timesheet_ids/tree/field[@name="is_timesheet"]" position="after">

<field name="invoiceable_analytic_line"/>


Ask a Question
Keep Informed
1 follower(s)
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.

Odoo Training Center

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

Test it now