Odoo Help


How to dynamically add fields in a view?

Samba Faye
on 9/12/13, 8:04 AM 2,111 views

I want to add a button that, when clicked, adds input fields. How will I do?

Samba Faye
On 9/12/13, 9:00 AM

Hello Daniel Can you give me an example. I'm new in OpenERP. How can I link the button to the condition.

Daniel Reis
On 9/12/13, 8:41 AM

One solution is to have those fields in the form, with the attribute attrs="{'invisible: <condition>}". The button would change a value in the document, and based on that value the <condition> could evaluate to False to make the corresponding fields visible.

El hadji Dem
On 2/9/15, 11:14 AM

Or try this: http://stackoverflow.com/questions/17738566/how-to-create-dynamic-fields-in-openerp-7-module

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: 9/12/13, 8:04 AM
Seen: 2111 times
Last updated: 3/16/15, 8:10 AM