تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7887 أدوات العرض

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?

الكاتب

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 ?

أفضل إجابة

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 ?

أفضل إجابة

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)

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 24
27964
0
مارس 15
5899
1
مارس 15
10869
3
مارس 15
8817
1
مارس 15
10332