Odoo Help

1

0
4 Antwoorden
1
Sehrish Pakistan
19-02-18 04:42

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 Opmerking
Sehrish Pakistan
19-02-18 04:44

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

http://learnopenerp.blogspot.com/2018/01/inheritance-in-models-and-views.html

Thanks

0
Daniel Sudrata Indonesië
16-05-18 09:15

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

0
Avatar

ayman mohammed adam Saoedi-Arabië

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


ayman mohammed adam Saoedi-Arabië
19-05-16 07:49

Hi,

please try this code

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

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

<field name="invoiceable_analytic_line"/>

</xpath>

Stel een vraag
Schrijver
Blijf op de hoogte
1 volger(s)
Over deze 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