Do not cache default_get from move line

As default_date and default_move depend on the very last saved data, we can not
cache the method result.

issue9926
review335331002
This commit is contained in:
Cédric Krier committed 2020-12-16 21:31:25 +01:00
1 parent e48abe436b
commit c1871ef36a
1 file changed
+2
+2
View File
@@ -719,6 +719,8 @@ class Line(ModelSQL, ModelView):
cls.__rpc__.update({
'on_write': RPC(instantiate=0),
})
# Do not cache default_date nor default_move
cls.__rpc__['default_get'].cache = None
cls._order[0] = ('id', 'DESC')
@classmethod