【发布时间】:2015-02-18 08:52:09
【问题描述】:
我正在创建一个谷歌地图模块,它允许用户通过右键单击地图来创建产品
右键单击事件被捕获并触发以下事件:
dispatchNewProductAction: function() {
console.log('called dispatch action');
this.do_action({
type: 'ir.actions.act_window',
res_model: "product.template",
views: [[false, 'form']],
context: {}
});
},
显示产品表单视图... 如何将坐标传递到表单视图中?
另一个问题... 如果我使用
target: 'new'
保存按钮不再可用,如何让弹出表单保存新的产品记录?
【问题讨论】:
-
也许你可以通过
context传递坐标。只是一个想法,我没有尝试过。
标签: javascript odoo openerp-8