From 0c1188c9aecec0c7df41b893c4c1edddea69b801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 30 Jun 2016 21:55:35 +0200 Subject: [PATCH] Clear the new record for Preference The Preference window create a new record to simulate the read using preferences values. But this mark the record has modified and prevent to click on buttons. So the new record must be canceled just after "new" call. issue5663 review28351002 --- tryton/gui/window/preference.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/preference.py b/tryton/gui/window/preference.py index 1239b1f014..997a425331 100644 --- a/tryton/gui/window/preference.py +++ b/tryton/gui/window/preference.py @@ -65,6 +65,7 @@ class Preference(NoModal): self.win.destroy() self.win = None return + self.screen.current_record.cancel() self.screen.current_record.set(preferences) self.screen.current_record.id = rpc._USER self.screen.current_record.validate(softvalidation=True)