Odoo Help

1

How to dynamically add fields in a view?

By
Samba Faye
on 9/12/13, 8:04 AM 1,933 views

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

0
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.

0
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.

0
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.

Register

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)

Stats

Asked: 9/12/13, 8:04 AM
Seen: 1933 times
Last updated: 3/16/15, 8:10 AM