java的xmlrpc,如何从OpenERP对JavaServer进行xmlRPC调用?

不要在服务器操作中这样做。您可以在OpenERP文档(我已经发送给您的链接:)中阅读以下内容The code is executed using the exec function of python, which is run in the dictionary namespace with variables: object,time,cr,uid,ids

嗯,我认为这不是完全正确的-OpenERP中的操作是通过tools.safe_eval.safe_eval()方法执行的。从该方法的doc字符串:"""safe_eval(expression[, globals[, locals[, mode[, nocopy]]]]) -> result

System-restricted Python expression evaluation

Evaluates a string that contains an expression that mostly

uses Python constants, arithmetic expressions and the

objects directly provided in context.

This can be used to e.g. evaluate

an OpenERP domain expression from an untrusted source.

Throws TypeError, SyntaxError or ValueError (not allowed) accordingly.

如果不输入细节,这是一个受限的执行。相反,请执行以下操作:创建自己的模块

创建继承自mrp.production的类。我是说,是的

_inherit = 'mrp.production'

在你班里。

在这个类中重写“Confirm Production”(不管是什么)之后执行的方法。在

在这个新方法中对rpc服务器执行所需的操作。在

别忘了打电话给super()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值