Add plugin for translation
This commit is contained in:
1 parent
23f99d98d3
commit
8341e4e91f
1 file changed
+12
@@ -0,0 +1,12 @@
|
||||
from tryton.gui.window import Window
|
||||
|
||||
def translate_view(datas, parent):
|
||||
model = datas['model']
|
||||
Window.create(False, 'ir.translation', [],
|
||||
[('model', '=', model)], 'form',
|
||||
mode=['tree', 'form'], window=parent)
|
||||
|
||||
def get_plugins(model):
|
||||
return [
|
||||
(_('Translate view'), translate_view),
|
||||
]
|
||||
Reference in new issue
Block a user