Odoo Help


Create a dynamic list of checkboxes in a view [Closed]

on 2/17/13, 1:39 AM 2,719 views

The Question has been closed

Sudhir Arya (ERP Harbor Consulting Services)
on 04/18/2013 04:53:29


I am learning how to develop custom modules so excuse me if this sounds basic.

For a new module I need to be able to create a view which will have N number of checkboxes. That N number will come from the inputs of another view, lets call it Categories

So in the view User I want the view to show a checkbox for each category in the Categories table.

Is this possible? If anyone can point me out on a module with similar functionalities or tip me on the basics on how this can be achieved I will be very thankful.

Thanks in advance


Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 2/17/13, 6:04 AM

First you have to dynamically create N number of fields for check boxes.

Now second thing about how to display N number of fields? You can dynamically create fields & view by overriding def view_init & def fields_view_get methods.

You can find similar code in POS Return.

Hope it will solve your problem.

Thanks Sudhir! Let me make sure I understand. I create both functions inside of my class "Users" lets say which will read the fields form my other table to create the N fields, but when are those functions called? Or those are functions which always get called by OpenERP? I will start testing

on 2/17/13, 12:59 PM

OK I understand now how to work with those methods! Thanks again!

on 2/17/13, 1:12 PM

Hi Yakito...looking for similar solution. Can you please post some dummy code for these functions to understand proper. It will be a great help. Thanks.

on 5/30/15, 2:43 AM

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: 2/17/13, 1:39 AM
Seen: 2719 times
Last updated: 3/16/15, 8:10 AM