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

Can not see the res.partner created by XML-RPC

By
xiaolong97427
on 3/29/13, 10:03 AM 2,059 views

Following the : http://doc.openerp.com/v6.0/developer/6_22_XML-RPC_web_services/

Using Python with OpenERP V7, I successfully created the user : Fabien : I have his id and I can see him into the database

But when I connect to the openERP, I can't see the user.

What did I do wrong ?

If you read the database with pgadmin can you see the user?

Francesco OpenCode
on 3/29/13, 10:04 AM

Yes I do, I am using Navicat lite and I can see my record in the res_partner table. Is the content of this table displayed on the Setting > Companies ?

xiaolong97427
on 3/29/13, 1:04 PM
0

Mohammad Alhashash

--Mohammad Alhashash--
2075
| 5 5 8
Giza, Egypt
--Mohammad Alhashash--

Developer

Mohammad Alhashash
On 3/29/13, 10:31 AM

Users model res.users uses _inehrits to inherit from res.partner which means for each user record, partner record will be created with different id. The related partner id column in res.users is partner_id.

So, the id you got is a res.users id, not res.partner.

Interesting, I didn't know that. But concerning, my problme, I add a res_partner and not a res_user. I used this command : partner_id = sock.execute(dbname, uid, pwd, 'res.partner', 'create', partner)

xiaolong97427
on 3/29/13, 1:04 PM
0

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 3/29/13, 11:00 AM

add this :

partner = {
   'name': 'Fabien Pinckaers',
   'active' : True   ,
   'lang': 'fr_FR',
}

No still can not see the user via the interface. The table : res_partner get well populated. I also saw a lof of record in this table I have never seen throught the interface. Isn't res_partner content displayed by : setting > Companies ?

xiaolong97427
on 3/29/13, 1:01 PM

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