changeset a0269564ec24 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=a0269564ec24
description:
        Do not sort state selection

        issue11169
        review374761005
diffstat:

 trytond/ir/error.py  |  2 +-
 trytond/ir/module.py |  2 +-
 trytond/res/user.py  |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 8f1b91ce455e -r a0269564ec24 trytond/ir/error.py
--- a/trytond/ir/error.py       Tue Feb 15 00:06:57 2022 +0100
+++ b/trytond/ir/error.py       Tue Feb 15 00:08:47 2022 +0100
@@ -72,7 +72,7 @@
             ('open', "Open"),
             ('processing', "Processing"),
             ('solved', "Solved"),
-            ], "State", readonly=True, select=True)
+            ], "State", readonly=True, select=True, sort=False)
 
     @classmethod
     def __setup__(cls):
diff -r 8f1b91ce455e -r a0269564ec24 trytond/ir/module.py
--- a/trytond/ir/module.py      Tue Feb 15 00:06:57 2022 +0100
+++ b/trytond/ir/module.py      Tue Feb 15 00:08:47 2022 +0100
@@ -380,7 +380,7 @@
     state = fields.Selection([
         ('open', 'Open'),
         ('done', 'Done'),
-        ], string='State', required=True, select=True)
+        ], string="State", required=True, select=True, sort=False)
 
     @classmethod
     def __register__(cls, module_name):
diff -r 8f1b91ce455e -r a0269564ec24 trytond/res/user.py
--- a/trytond/res/user.py       Tue Feb 15 00:06:57 2022 +0100
+++ b/trytond/res/user.py       Tue Feb 15 00:08:47 2022 +0100
@@ -1111,7 +1111,7 @@
             ('requested', "Requested"),
             ('validated', "Validated"),
             ('cancelled', "Cancelled"),
-            ], "State", readonly=True)
+            ], "State", readonly=True, sort=False)
 
     @classmethod
     def __setup__(cls):

Reply via email to