Add plugin for translation

This commit is contained in:
Cédric Krier committed 2008-02-12 13:11:51 +01:00
1 parent 23f99d98d3
commit 8341e4e91f
1 file changed
+12
+12
View File
@@ -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),
]