changeset 2641fb1fd046 in modules/production:6.2
details:
https://hg.tryton.org/modules/production?cmd=changeset&node=2641fb1fd046
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 fae86915a8aa -r 2641fb1fd046 production.py
--- a/production.py Mon Nov 01 17:11:12 2021 +0100
+++ b/production.py Tue Dec 21 23:15:23 2021 +0100
@@ -773,7 +773,9 @@
@classmethod
def _get_reschedule_domain(cls, date):
+ context = Transaction().context
return [
+ ('company', '=', context.get('company')),
('state', '=', 'waiting'),
('planned_start_date', '<', date),
]