changeset cbdd22ab0bd3 in modules/purchase:default
details: https://hg.tryton.org/modules/purchase?cmd=changeset;node=cbdd22ab0bd3
description:
        Order with nulls first

        issue10078
        review331831002
diffstat:

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

diffs (12 lines):

diff -r b45fe3d68178 -r cbdd22ab0bd3 purchase.py
--- a/purchase.py       Fri Feb 12 23:58:33 2021 +0100
+++ b/purchase.py       Sun Feb 14 15:48:44 2021 +0100
@@ -229,7 +229,7 @@
     def __setup__(cls):
         super(Purchase, cls).__setup__()
         cls._order = [
-            ('purchase_date', 'DESC'),
+            ('purchase_date', 'DESC NULLS FIRST'),
             ('id', 'DESC'),
             ]
         cls._transitions |= set((

Reply via email to