diff --git a/tryton/plugins/translation/__init__.py b/tryton/plugins/translation/__init__.py index d88cf6e0b3..eb3d25690c 100644 --- a/tryton/plugins/translation/__init__.py +++ b/tryton/plugins/translation/__init__.py @@ -1,8 +1,10 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. -from tryton.gui.window import Window import gettext +from tryton.gui.window import Window +from tryton.common import MODELACCESS + _ = gettext.gettext @@ -14,6 +16,10 @@ def translate_view(datas): def get_plugins(model): - return [ - (_('Translate view'), translate_view), - ] + access = MODELACCESS['ir.translation'] + if access['read'] and access['write']: + return [ + (_('Translate view'), translate_view), + ] + else: + return []