changeset 92005a9a1baa in modules/account:5.8
details: https://hg.tryton.org/modules/account?cmd=changeset;node=92005a9a1baa
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 aa9386014e59 -r 92005a9a1baa move.py
--- a/move.py   Fri Nov 27 22:38:34 2020 +0100
+++ b/move.py   Wed Dec 16 21:31:25 2020 +0100
@@ -719,6 +719,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