changeset 04df2f582c4a in modules/stock:6.0
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=04df2f582c4a
description:
        Limit assign to contextual company

        issue11010
        review376111002
        (grafted from 1f608370cd326df578eb01295582f0004431ee2c)
diffstat:

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

diffs (13 lines):

diff -r 1cb154b545c3 -r 04df2f582c4a shipment.py
--- a/shipment.py       Sat Dec 18 01:38:39 2021 +0100
+++ b/shipment.py       Tue Dec 21 23:14:59 2021 +0100
@@ -75,7 +75,9 @@
     def _get_assign_domain(cls):
         pool = Pool()
         Date = pool.get('ir.date')
+        context = Transaction().context
         return [
+            ('company', '=', context.get('company')),
             ('state', '=', 'waiting'),
             ('planned_date', '=', Date.today()),
             ]

Reply via email to