我正在创建一个谷歌地图模块,它允许用户通过右键单击地图来创建产品
右键单击事件被捕获并激发以下内容:
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'
保存按钮不再可用,我如何允许弹出表单保存新的产品记录?
要查看新目标中的保存按钮,只需添加
标志:{'form':{'action_buttons':true}},
你的js动作。