From 9e74caa4f9a5bb5ac1bb301c0faa426d08e54c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 25 May 2016 11:10:36 +0200 Subject: [PATCH] Set view values before testing modified record for translate pop-up The view values are not always set when the method is triggered by an entry icon which doesn't grab the focus. issue5555 review26291002 --- tryton/gui/window/view_form/view/form_gtk/widget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/widget.py b/tryton/gui/window/view_form/view/form_gtk/widget.py index 21d3b8c864..bd6d6ccd96 100644 --- a/tryton/gui/window/view_form/view/form_gtk/widget.py +++ b/tryton/gui/window/view_form/view/form_gtk/widget.py @@ -242,6 +242,7 @@ class TranslateMixin: return button def translate(self, *args): + self.view.set_value() if self.record.id < 0 or self.record.modified: common.message( _('You need to save the record before adding translations!'))