Odoo Help


Show all available fields on a model ?

Martin PANEL
on 7/16/13, 8:37 AM 877 views

I'm using the XMLRPC API and I try to find some fields of model (like product.product).

Is there a method to know all field of a model ?

martin mueller
On 9/23/13, 7:02 PM

Yes, there is and it will also give you the attributes of those fields:

 myresult = sock.execute(dbname, uid, pwd, 'product.product', 'fields_get')
 for key, value in myresult.iteritems() :
    print key, value

i want to show all field without any api like i want know my current model filed from button click or open form/wizard i don't want to pass more argument or data to the function

shivam dudhat, Shivam
on 1/5/16, 2:50 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: 7/16/13, 8:37 AM
Seen: 877 times
Last updated: 3/16/15, 8:10 AM