【发布时间】:2019-07-16 05:55:22
【问题描述】:
当我单击按钮时,向导会以“编辑”模式打开。我想在“保存”模式下打开向导也想隐藏按钮页脚(创建、编辑、保存和丢弃)。那么,有人建议我解决这个问题吗?
我的代码如下:
o_button_help: function(){
var self = this;
event.stopPropagation();
event.preventDefault();
rpc.query({
model: 'timesheet.help',
method: 'get_timesheet_help_document',
args: [],
}).then(function (res) {
test = res['timesheet_document_view_id'];
self.do_action({
name: ("Help"),
type: 'ir.actions.act_window',
res_model: 'document.document',
view_mode: 'form,tree,kanban',
view_type: 'form',
views: [[false, 'form'],[false, 'list'],[false, 'kanban']],
target: 'new',
res_id: test,
},{on_reverse_breadcrumb: function(){ return self.reload();}})
});
【问题讨论】:
标签: javascript save odoo odoo-11