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.

0

Show all available fields on a model ?

By
Martin PANEL
on 7/16/13, 8:37 AM 624 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 ?

0
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

sarkar
on 1/5/16, 2:50 AM

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: 7/16/13, 8:37 AM
Seen: 624 times
Last updated: 3/16/15, 8:10 AM