Hello,
how I can call a server action from python with XML-RPC ?
The connection is OK, I can access Odoo, models, data...
Thanks for your help.
Denis
Hello,
how I can call a server action from python with XML-RPC ?
The connection is OK, I can access Odoo, models, data...
Thanks for your help.
Denis
I found the solution...
from xmlrpc import client
from connection import *
server_url = 'https://***'
db_name = '***'
username = '***'
password = '***'
common = client.ServerProxy('%s/xmlrpc/2/common' % server_url)
user_id = common.authenticate(db_name, username, password, {})
models = client.ServerProxy('%s/xmlrpc/2/object' % server_url)
models.execute_kw(db_name, user_id, password, "ir.cron", "method_direct_trigger", [ID of the action])
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.