Do not sort state selection

issue11169
review374761005
This commit is contained in:
Cédric Krier
2022-02-15 00:08:47 +01:00
parent e286f15f42
commit 2e301ea35d
+2 -2
View File
@@ -491,7 +491,7 @@ class Mandate(Workflow, ModelSQL, ModelView):
('requested', 'Requested'),
('validated', 'Validated'),
('cancelled', 'Cancelled'),
], 'State', readonly=True)
], "State", readonly=True, sort=False)
payments = fields.One2Many('account.payment', 'sepa_mandate', 'Payments')
has_payments = fields.Function(fields.Boolean('Has Payments'),
'get_has_payments')
@@ -777,7 +777,7 @@ class Message(Workflow, ModelSQL, ModelView):
('waiting', 'Waiting'),
('done', 'Done'),
('cancelled', 'Cancelled'),
], 'State', readonly=True, select=True)
], "State", readonly=True, select=True, sort=False)
@classmethod
def __setup__(cls):