changeset db50f491dd8b in modules/account:5.6
details: https://hg.tryton.org/modules/account?cmd=changeset;node=db50f491dd8b
description:
        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
        (grafted from 61afe1dc640c3185247113cde93c16a9bc816141)
diffstat:

 move.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 190c4ea72fe5 -r db50f491dd8b move.py
--- a/move.py   Fri Dec 11 15:44:40 2020 +0100
+++ b/move.py   Wed Dec 16 21:31:25 2020 +0100
@@ -717,6 +717,8 @@
         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

Reply via email to