Community mailing list archives

community@mail.odoo.com

Re: Execute remote method in Odoo 8 xmlrpc

by
Serpent Consulting Services Pvt. Ltd., Jay Vora
- 01/29/2016 06:48:20
Ange,

We've it realtime on Base_synchro module.

Thanks.

On Fri, Jan 29, 2016 at 5:04 PM, Hardik Goswami <hardikgiri.goswami@gmail.com> wrote:

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

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




--

The Splendid journey of 4 years in Numbers
---
Regards,
----------------------------------------------------------------------------------------------------------------------------
Jay Vora
Managing Director


 
Direct: +91-9879354457
Office: +91-9033472982
Skype: jaynvora
Twitter : jaynvora
   
-------------------------------------------------------------------------------------------------
Visit our website : http://www.serpentcs.com
Please consider the environment before printing this email