Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I created some inherit fields in res.partner but i don't how to search in this fields through XML-RPC.
I created my field like this:
from openerp import models, fields class pb_it(models.Model): _inherit = 'res.partner' app_product_key = fields.Char(string='Product Key')XML-RPC return
ValueError: Invalid field 'app_product_key' in leaf "<osv.ExtendedLeaf: ('app_product_key', '=', '4784-AZ44-Q123') on res_partner (ctx: )
If you have an idea :)
There may be two possiblites of this error.
1) wrong syntax of domain. if we directly pass domain inside list [condition1, condition2] instead of list of tuples [(condition1), (condition2)] than odoo throws this kind of error.
2) Might be searching data with wrong class/model it might give the leaf error.
Or provide your XML-RPC sample code which so can give you the exact solution for this.
Hope this might help.
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
|Asked: 9/1/15, 7:14 AM|
|Seen: 777 times|
|Last updated: 9/4/15, 4:36 AM|