changeset 40fd101bc66b in modules/production:6.0
details:
https://hg.tryton.org/modules/production?cmd=changeset&node=40fd101bc66b
description:
Limit reschedule to contextual company
issue11010
review376111002
(grafted from 44f3b5c202c0339eacc23196af8659d62dd25738)
diffstat:
production.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r d68ed951f34a -r 40fd101bc66b production.py
--- a/production.py Thu Jun 17 21:32:27 2021 +0200
+++ b/production.py Tue Dec 21 23:15:23 2021 +0100
@@ -776,7 +776,9 @@
@classmethod
def _get_reschedule_domain(cls, date):
+ context = Transaction().context
return [
+ ('company', '=', context.get('company')),
('state', '=', 'waiting'),
('planned_start_date', '<', date),
]