Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4914 Zobrazení

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
Zrušit

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?

Related Posts Odpovědi Zobrazení Aktivita
1
lis 19
6777
1
čvc 18
11045
1
dub 16
4253
0
úno 16
3802
0
lis 15
3392