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

Executing Python Script in Odoo

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

Hello,  

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.

0
CV
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 

 

0
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.. 

Example:

class test(object):

     def __init__(self):

         ........



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: 11/16/16, 4:14 AM
Seen: 83 times
Last updated: 11/16/16, 7:39 AM