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
This commit is contained in:
1 parent
d09c31a36e
commit
9e74caa4f9
1 file changed
+1
@@ -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!'))
|
||||
|
||||
Reference in new issue
Block a user