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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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
\\\
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):
........
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 22
|
2511 | ||
|
0
Jan 20
|
1734 | ||
|
2
Nov 24
|
266 | ||
|
1
Oct 24
|
334 | ||
|
4
Oct 24
|
324 |