Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4903 Visualizzazioni

For example, I can call

xmlrpclib.ServerProxy('http://localhost:9069/xmlrpc/db').create_database('db_name',False, 'en')

But I would like to add a new method by a module

Thanks for the help!

Avatar
Abbandona

Have you tried creating a new module with your custom method? Since all the methods should be available, so should yours in that case.

Hi Ludo, thanks for the quick response. I think it is not so simple as extending a class (like for eg. res.partner). 
I need to add a method avilable to be use as a WS and available without any db installed, the same as the methods restore, dump, etc defined in "openerp/service/db.py"
Thanks, 
Juan 

Ing. Juan José Scarafía
(+54 9 341)153 278039
skype: jjscarafia
twitter: @jjscarafia
github: @jjscarafia


2015-02-20 6:05 GMT-03:00 Ludo - Neobis <ludo@neobis.nl>:

Have you tried creating a new module with your custom method? Since all the methods should be available, so should yours in that case.

--
Ludo - Neobis
Sent by Odoo S.A. using Odoo about Forum Post How can I extend odoo web service methods available?

Post correlati Risposte Visualizzazioni Attività
1
nov 19
6758
1
lug 18
11025
1
apr 16
4242
0
feb 16
3788
0
nov 15
3388