Community mailing list archives

community@mail.odoo.com

Re: Execute remote method in Odoo 8 xmlrpc

by
Hardikgiri Goswami
- 01/29/2016 06:31:28

Hello Ange,

As I see, your code is looking good which is in the blue. But can you describe which remote method you want to execute. So I can suggest you parameter list too, with proper syntax.

Regards,
Hardikgiri Goswami
Skype : hardikgiri.goswami


On 2:53PM, Fri, Jan 29, 2016 Ange DJEDJE <ange.djedje@veone.net> wrote:
Hello dears,

Please how can I execute a remote method I wrote with xmlrpc in Odoo 8 new api.
I used this way but it does'nt work :

url = 'http://remote_adresse:8069'
db = 'database'
username = 'admin'
password = 'admin'
common = xmlrpclib.ServerProxy('{}/xmlrpc/2/common'.format(url))
common.version()
uid = common.authenticate(db, username, password, {})

models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
liste = models.execute_kw(db, uid, password,
'my.model', 'my_method')


Thanks in advance !

---
Cordialement.
VEONE

Ange DJEDJE | Coordonnateur Projet
1ère Entreprise Numérique 2015 de Côte d'Ivoire
Tel : +225 22 435 257 | Fax : +225 22 478 054 | Mob : +225 77 70 02 73
Site : www.veone.net | Adr : Cocody Riviera Bonoumin lot 302, ilot 23
Email : ange.djedje@veone.net | Skype : ange.djedje


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe