[FIX] have readonly m2o links open forms in readonly as well

bzr revid: xmo@openerp.com-20111207104942-w3x6trs3utk6fwpw
This commit is contained in:
Xavier Morel
2011-12-07 11:49:42 +01:00
parent f3c671cbd8
commit faa8627737
+1 -1
View File
@@ -142,7 +142,7 @@ openerp.web.page = function (openerp) {
res_model: self.field.relation,
res_id: self.value[0],
context: self.build_context(),
views: [[false, 'form']],
views: [[false, 'page'], [false, 'form']],
target: 'current'
});
return false;