Odoo Help


forbid addition in one2many widget but permit edition of lines

Alexandre Fayolle - Camptocamp
on 8/30/13, 8:23 AM 3,426 views

I have a button to populate a one2many field by creating lines from a number of criteria with default values. I would like the fom to display a tree view of the lines which allows editing the default values in the lines but not adding new rows.

How can this be achieved?

On 8/31/13, 5:10 AM

In the tree node of the one2many field, just set create="false".

This will disable the Add an item link.

See also this question

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

Question tools

0 follower(s)


Asked: 8/30/13, 8:23 AM
Seen: 3426 times
Last updated: 8/10/15, 6:10 PM