Odoo Help


Executing Python Script in Odoo

Sana Ali
on 11/16/16, 4:14 AM 965 views


How can i execute a simple class/set of methods written in python code that does not uses Odoo ORM in odoo?

Kindly help or guide me how can i achieve this.

On 11/16/16, 7:39 AM

Hello, Sara

You can call orm methods without use of odoo orm with the use of xmlrpc call. You have to connect your server & Database to through xmlrpc methods written as python script.

Reference Document: \https\:\/\/www\.odoo\.com\/documentation\/8\.0\/api\_integration\.html\\\


Sample\ script\:\ \http\:\/\/findnerd\.com\/list\/view\/How\-to\-Use\-XML\-RPC\-of\-Odoo\-8\/7666\/\\\


Just go through it . Best of luck 


Raisul Islam
On 11/16/16, 7:10 AM

Hello, You can create a class object to use a view model and write a action definition in controller to execute the logic with that model.. 


class test(object):

     def __init__(self):


About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/16/16, 4:14 AM
Seen: 965 times
Last updated: 11/16/16, 7:39 AM