changeset 44f3b5c202c0 in modules/production:default
details: 
https://hg.tryton.org/modules/production?cmd=changeset&node=44f3b5c202c0
description:
        Limit reschedule to contextual company

        issue11010
        review376111002
diffstat:

 production.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 509fe7f92809 -r 44f3b5c202c0 production.py
--- a/production.py     Sat Dec 18 16:31:09 2021 +0100
+++ b/production.py     Tue Dec 21 23:15:23 2021 +0100
@@ -771,7 +771,9 @@
 
     @classmethod
     def _get_reschedule_domain(cls, date):
+        context = Transaction().context
         return [
+            ('company', '=', context.get('company')),
             ('state', '=', 'waiting'),
             ('planned_start_date', '<', date),
             ]

Reply via email to