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

Object res.partner.res.partner.category.rel doesn't exist

By
Antoine Louiset
on 3/4/13, 5:25 AM 1,892 views

Hi,

I use openerp Version 7.0-20130215-002350, when I try to execute a request on the res.partner.res.partner.category.rel object with the WS API, I got to following error in the log :
2013-02-23 22:38:40,731 2021 INFO openerp werkzeug: 127.0.0.1 - - [23/Feb/2013 22:38:40] "POST /xmlrpc/object HTTP/1.1" 200 -
2013-02-23 22:38:40,733 2021 DEBUG ? openerp.netsvc.rpc.request: object.execute('openerp',
2013-02-23 22:38:40,734 2021 DEBUG ? openerp.netsvc.rpc.request: 1,
2013-02-23 22:38:40,734 2021 DEBUG ? openerp.netsvc.rpc.request: '',
2013-02-23 22:38:40,734 2021 DEBUG ? openerp.netsvc.rpc.request: 'res.partner.res.partner.category.rel',
2013-02-23 22:38:40,734 2021 DEBUG ? openerp.netsvc.rpc.request: 'create',
2013-02-23 22:38:40,734 2021 DEBUG ? openerp.netsvc.rpc.request: {'category_id': 2, 'partner_id': 11})
2013-02-23 22:38:40,734 2021 ERROR openerp openerp.netsvc: Object Error Object res.partner.res.partner.category.rel doesn't exist Traceback (most recent call last):
File "/opt/openerp/server/openerp/netsvc.py", line 289, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/server/openerp/service/web_services.py", line 614, in dispatch res = fn(db, uid, *params)
File "/opt/openerp/server/openerp/osv/osv.py", line 123, in wrapper return f(self, dbname, *args, *
kwargs)
File "/opt/openerp/server/openerp/osv/osv.py", line 179, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw)
File "/opt/openerp/server/openerp/osv/osv.py", line 165, in execute_cr raise except_osv('Object Error', 'Object %s doesn\'t exist' % str(obj)) except_osv: ('Object Error', "Object res.partner.res.partner.category.rel doesn't exist")




I don't understand, the name of the table is res_partner_res_partner_category_rel. Have you got any ideas ? Thanks a lot for your help !

Best regards,

Antoine

0
eLBati
On 3/5/13, 3:47 AM

The res_partner_res_partner_category_rel table is created by ORM to store the category_id field of res.partner model.

That means it's not a model itself, therefore you can't access to it through XML-RPC.

You can of course read and write the category_id field.

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

1 follower(s)

Stats

Asked: 3/4/13, 5:25 AM
Seen: 1892 times
Last updated: 3/16/15, 8:10 AM