changeset 7db58c00d232 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=7db58c00d232
description:
Do not sort state selection
issue11169
review374761005
diffstat:
inventory.py | 2 +-
move.py | 2 +-
period.py | 2 +-
shipment.py | 26 +++++++++++++-------------
4 files changed, 16 insertions(+), 16 deletions(-)
diffs (113 lines):
diff -r 69058efe682d -r 7db58c00d232 inventory.py
--- a/inventory.py Fri Feb 04 21:36:26 2022 +0100
+++ b/inventory.py Tue Feb 15 00:08:47 2022 +0100
@@ -64,7 +64,7 @@
('draft', "Draft"),
('done', "Done"),
('cancelled', "Cancelled"),
- ], "State", readonly=True, select=True,
+ ], "State", readonly=True, select=True, sort=False,
help="The current state of the inventory.")
del _states, _depends
diff -r 69058efe682d -r 7db58c00d232 move.py
--- a/move.py Fri Feb 04 21:36:26 2022 +0100
+++ b/move.py Tue Feb 15 00:08:47 2022 +0100
@@ -235,7 +235,7 @@
('assigned', 'Assigned'),
('done', 'Done'),
('cancelled', 'Cancelled'),
- ], 'State', select=True, readonly=True,
+ ], "State", select=True, readonly=True, sort=False,
help="The current state of the stock move.")
company = fields.Many2One(
'company.company', "Company", required=True,
diff -r 69058efe682d -r 7db58c00d232 period.py
--- a/period.py Fri Feb 04 21:36:26 2022 +0100
+++ b/period.py Tue Feb 15 00:08:47 2022 +0100
@@ -29,7 +29,7 @@
state = fields.Selection([
('draft', 'Draft'),
('closed', 'Closed'),
- ], 'State', select=True, readonly=True,
+ ], "State", select=True, readonly=True, sort=False,
help="The current state of the stock period.")
@classmethod
diff -r 69058efe682d -r 7db58c00d232 shipment.py
--- a/shipment.py Fri Feb 04 21:36:26 2022 +0100
+++ b/shipment.py Tue Feb 15 00:08:47 2022 +0100
@@ -240,10 +240,10 @@
done_by = employee_field("Done By")
state = fields.Selection([
('draft', 'Draft'),
+ ('received', 'Received'),
('done', 'Done'),
('cancelled', 'Cancelled'),
- ('received', 'Received'),
- ], 'State', readonly=True,
+ ], "State", readonly=True, sort=False,
help="The current state of the shipment.")
@classmethod
@@ -654,11 +654,11 @@
done_by = employee_field("Done By")
state = fields.Selection([
('draft', 'Draft'),
- ('cancelled', 'Cancelled'),
+ ('waiting', 'Waiting'),
('assigned', 'Assigned'),
- ('waiting', 'Waiting'),
('done', 'Done'),
- ], 'State', readonly=True,
+ ('cancelled', 'Cancelled'),
+ ], 'State', readonly=True, sort=False,
help="The current state of the shipment.")
@classmethod
@@ -1041,13 +1041,13 @@
done_by = employee_field("Done By")
state = fields.Selection([
('draft', 'Draft'),
- ('done', 'Done'),
- ('cancelled', 'Cancelled'),
+ ('waiting', 'Waiting'),
('assigned', 'Assigned'),
('picked', 'Picked'),
('packed', 'Packed'),
- ('waiting', 'Waiting'),
- ], 'State', readonly=True,
+ ('done', 'Done'),
+ ('cancelled', 'Cancelled'),
+ ], "State", readonly=True, sort=False,
help="The current state of the shipment.")
@classmethod
@@ -1699,10 +1699,10 @@
done_by = employee_field("Done By")
state = fields.Selection([
('draft', 'Draft'),
+ ('received', 'Received'),
('done', 'Done'),
('cancelled', 'Cancelled'),
- ('received', 'Received'),
- ], 'State', readonly=True,
+ ], "State", readonly=True, sort=False,
help="The current state of the shipment.")
@classmethod
@@ -2174,12 +2174,12 @@
state = fields.Selection([
('request', 'Request'),
('draft', 'Draft'),
- ('cancelled', 'Cancelled'),
('waiting', 'Waiting'),
('assigned', 'Assigned'),
('shipped', 'Shipped'),
('done', 'Done'),
- ], 'State', readonly=True,
+ ('cancelled', 'Cancelled'),
+ ], "State", readonly=True, sort=False,
help="The current state of the shipment.")
@classmethod