Check ir.translation access for translate plugin
issue10862 review373901002 (grafted from 2d70702c1424d83cdaf430d780098764b046b714) --HG-- branch : 6.0
This commit is contained in:
1 parent
bcd9c89bbe
commit
edf211b25f
1 file changed
+2
-2
+2
-2
@@ -15,8 +15,8 @@
|
||||
});
|
||||
};
|
||||
Translate.get_plugins = function(model) {
|
||||
var access = Sao.common.MODELACCESS.get(model);
|
||||
if (access.create && access.write) {
|
||||
var access = Sao.common.MODELACCESS.get('ir.translation');
|
||||
if (access.read && access.write) {
|
||||
return [
|
||||
[Sao.i18n.gettext('Translate view'), Translate.translate_view],
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user