Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
10059 มุมมอง

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 ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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