Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我想销售订单审批流程,用系统的“request”完成。现在我新建一个服务器动作,“object”选择“sale.order”,“Action Type”选择“Create Object”,“model”选择“res.request”,下面的字段内容用了3个字段:1、“name”“公式”“销售订单审批”,2、“to”“值”“1”,3、“Document Ref 1”“公式”“sale.order,113”。这样可以用。我现在想把第三个字段的改成“object,object.id”,可是不能用,要怎么写啊。
不错的想法。试试:Document Ref 1, 公式, object.id当Type 为‘Formula'时,Vlue字段中的字符串会被eval:
result = eval(value, {'object':obj, 'context':dict(context), 'time':time}
object在当前命名空间里对应的就是当前的browse_obj(您的例子中就是当前销售订单), 其id即为:object.id
你好!看起来您对这段对话很感兴趣,但您还没有一个账号。
厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。
有了你的建议,这篇帖子会更精彩哦 💗