跳至内容
菜单
此问题已终结
1 回复
395 查看

I'm trying to use the external API in python to create an activity in my CRM leads, but I can´t find any workig example in the documentation and good documentation about the models needed to make that happen.

At the moment I have this code to check if I have permissions to perform a create action in the mail.activity.schedule module:


models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))

models.execute_kw(db, uid, password, 'mail.activity.schedule', 'check_access_rights', ['create'], {'raise_exception': False})


I got the model activity out from the debug mode at the moment of creating a new activity:

(I can´t upload images yet, but you can see it if you hover the cursor over the Programar/Program button in the creation of a new activity inside of a lead)


But I still don't understand what I need or how to create the activity.


形象
丢弃