changeset 2f6c83d6f7ab in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=2f6c83d6f7ab
description:
Do not sort state selection
issue11169
review374761005
diffstat:
account.py | 2 +-
fiscalyear.py | 2 +-
journal.py | 2 +-
move.py | 4 ++--
period.py | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diffs (69 lines):
diff -r 494fd41d1f70 -r 2f6c83d6f7ab account.py
--- a/account.py Mon Feb 14 12:32:51 2022 +0100
+++ b/account.py Tue Feb 15 00:08:46 2022 +0100
@@ -2278,7 +2278,7 @@
state = fields.Selection([
('draft', 'Draft'),
('posted', 'Posted'),
- ], 'State')
+ ], "State", sort=False)
state_string = state.translated('state')
currency = fields.Function(fields.Many2One(
'currency.currency', "Currency"), 'get_currency')
diff -r 494fd41d1f70 -r 2f6c83d6f7ab fiscalyear.py
--- a/fiscalyear.py Mon Feb 14 12:32:51 2022 +0100
+++ b/fiscalyear.py Tue Feb 15 00:08:46 2022 +0100
@@ -44,7 +44,7 @@
('open', 'Open'),
('close', 'Close'),
('locked', 'Locked'),
- ], 'State', readonly=True, required=True)
+ ], 'State', readonly=True, required=True, sort=False)
post_move_sequence = fields.Many2One(
'ir.sequence', "Post Move Sequence", required=True,
domain=[
diff -r 494fd41d1f70 -r 2f6c83d6f7ab journal.py
--- a/journal.py Mon Feb 14 12:32:51 2022 +0100
+++ b/journal.py Tue Feb 15 00:08:46 2022 +0100
@@ -223,7 +223,7 @@
state = fields.Selection([
('open', 'Open'),
('close', 'Close'),
- ], 'State', readonly=True, required=True)
+ ], 'State', readonly=True, required=True, sort=False)
@classmethod
def __setup__(cls):
diff -r 494fd41d1f70 -r 2f6c83d6f7ab move.py
--- a/move.py Mon Feb 14 12:32:51 2022 +0100
+++ b/move.py Tue Feb 15 00:08:46 2022 +0100
@@ -77,7 +77,7 @@
state = fields.Selection([
('draft', 'Draft'),
('posted', 'Posted'),
- ], 'State', required=True, readonly=True, select=True)
+ ], 'State', required=True, readonly=True, select=True, sort=False)
lines = fields.One2Many('account.move.line', 'move', 'Lines',
states=_MOVE_STATES, depends=_MOVE_DEPENDS + ['company'],
context={
@@ -834,7 +834,7 @@
state = fields.Selection([
('draft', 'Draft'),
('valid', 'Valid'),
- ], 'State', readonly=True, required=True, select=True)
+ ], 'State', readonly=True, required=True, select=True, sort=False)
reconciliation = fields.Many2One('account.move.reconciliation',
'Reconciliation', readonly=True, ondelete='SET NULL', select=True)
reconciliations_delegated = fields.One2Many(
diff -r 494fd41d1f70 -r 2f6c83d6f7ab period.py
--- a/period.py Mon Feb 14 12:32:51 2022 +0100
+++ b/period.py Tue Feb 15 00:08:46 2022 +0100
@@ -35,7 +35,7 @@
('open', 'Open'),
('close', 'Close'),
('locked', 'Locked'),
- ], 'State', readonly=True, required=True)
+ ], 'State', readonly=True, required=True, sort=False)
post_move_sequence = fields.Many2One('ir.sequence', 'Post Move Sequence',
domain=[
('sequence_type', '=',