Skip to Content
Menu
This question has been flagged
2 Replies
4041 Views

Hi,

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 :)

Thanks

Avatar
Discard

can you put your xmlrpc calling code ? It is easy to find out an issue.

Another idea is to be sure that the module that add the field are correctly installed or updated, the code is imported in the module and the model is correctly extended with the field. Perhaps the error is due to the res.partner model just don't know about the field due to the previous reasons

Author

Ok, my dev envirement die, so i reinstalled everything on a new computer, and now it work, so :)

Best Answer

Hi Sebastian782,

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.

Rgds,

Anil.




Avatar
Discard
Related Posts Replies Views Activity
1
Oct 24
272
1
Aug 24
424
2
Nov 24
761
1
Apr 24
514
2
Mar 24
750