Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How can I extend odoo web service methods available?

By
Juan José Scarafía
on 2/19/15, 5:11 PM 763 views

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!

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
on 2/20/15, 4:05 AM
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?

Juan José Scarafía
on 2/23/15, 1:02 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/19/15, 5:11 PM
Seen: 763 times
Last updated: 3/16/15, 8:10 AM