odoo do_action target为new时弹框默认时编辑模式,要只读模式只需加
'initial_mode': 'view'
this.do_action({
res_model: model_name,
res_id: parseInt(id),
name :"查看",
views: [[false, 'form']],
type: 'ir.actions.act_window',
flags: {'initial_mode': 'view',action_buttons:false},
target:'new'
})