From 6b84d7e4e7bfb31ce639affb8e2a270c61ab903d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 11 Apr 2014 17:42:40 +0200 Subject: [PATCH] Force reload in click method click can not rely on save to always reload the record. issue3832 --- proteus/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/proteus/__init__.py b/proteus/__init__.py index 43fdf7e037..6d3ffa0b81 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -691,6 +691,7 @@ class Model(object): def click(self, button): 'Click on button' self.save() + self.reload() # Force reload because save doesn't always return getattr(self._proxy, button)([self.id], self._config.context) def _get_values(self, fields=None):