Force reload in click method
click can not rely on save to always reload the record. issue3832
This commit is contained in:
1 parent
5569703bff
commit
6b84d7e4e7
1 file changed
+1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user