我可以从 OpenERP 中的树视图触发窗口操作吗?
我正在尝试在 OpenERP 中建立一条从生产订单到原材料装箱单的捷径。
我可以获得相关窗口链接显示在生产订单表单上,但我真的希望能够通过单击屏幕顶部的“操作”按钮从生产订单树视图中访问装箱单。这样,我就不必打开生产订单表格。似乎可以通过使用
标记中的 keyword="client_action_multi"
属性从树视图访问向导。是否有与窗口操作等效的东西?
我想我可以写一个 向导触发窗口操作,但我希望有更简单的东西。
I'm trying to make a shortcut to get from a production order to the packing list for its raw materials in OpenERP.
I can get the related window link to appear on the production order form, but I'd really like to be able to get to the packing list from the production order tree view by clicking on the Action button at the top of the screen. That way, I wouldn't have to open the production order form. It seems like a wizard can be accessed from the tree view by using the keyword="client_action_multi"
attribute in the <wizard>
tag. Is there something equivalent for a window action?
I guess I could write a wizard that triggers a window action, but I was hoping for something simpler.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
感谢 QGerome 的帮助,我成功了。我在
hr
模块中找到了一个可以遵循的示例:我不确定
标记和原始ir 之间到底有什么区别。 value
记录,但convert.py
中的数据导入代码似乎正在调用ir_set()
,所以我就这么做了。您可以在 启动板上查看我的完整解决方案。
Thanks to QGerome's help, I got this working. I found an example to follow in the
hr
module:I'm not sure exactly what the difference is between the
<ir_set>
tag and a rawir.values
record, but the data import code inconvert.py
seemed to be callingir_set()
, so I went with that.You can see my complete solution on launchpad.
您可以创建 ir.values 记录
或从菜单:管理/低级对象/客户端操作连接
You can create a ir.values record
or from the menu : Administration / Low Level Objects / Client Actions Connections