Odoo 13如何通过api运行动作?

问题描述

url = "ip"
db = "dbname"
username = "user"
password = "admin"

common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db,username,password,{})

actions = models.execute_kw(db,uid,'ir.cron','search',[[['name','=','Mail: Email Queue Manager']]])
print(actions)

Returns [2]

但是我不确定如何执行此操作?我曾尝试查看文档,但没有看到有关如何执行操作的示例?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)