Odoo Help

Welcome!

This community 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.

1

forbid addition in one2many widget but permit edition of lines

By
Alexandre Fayolle - Camptocamp
on 8/30/13, 8:23 AM 2,860 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?

3
eLBati
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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