changeset 0250b2ab9ba3 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=0250b2ab9ba3
description:
        Ensure sequence_ordered is ASC

        issue10299
        review334181002
diffstat:

 trytond/model/order.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 67445c3ac5d6 -r 0250b2ab9ba3 trytond/model/order.py
--- a/trytond/model/order.py    Wed Apr 21 23:54:43 2021 +0200
+++ b/trytond/model/order.py    Thu Apr 22 23:44:39 2021 +0200
@@ -9,6 +9,7 @@
         field_label=lazy_gettext('ir.msg_sequence'),
         order='ASC NULLS FIRST'):
     "Returns a mixin to order the model by order fields"
+    assert order.startswith('ASC')
 
     class SequenceOrderedMixin(object):
         "Mixin to order model by a sequence field"

Reply via email to