Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
15808 มุมมอง

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, 

I read the post above and my question is that, Like how you can embed HTML code in your odoo website similarly if I have to embed my python code on my website then what I have to do.

Is it some kind of paid version or what?

Help me i want to release my python apps on website. 

คำตอบที่ดีที่สุด

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):

         ........



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 22
3693
0
ม.ค. 20
2581
2
ส.ค. 25
2626
1
ก.ค. 25
1018
1
ส.ค. 25
1151