changeset 6a1f51678c15 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=6a1f51678c15
description:
        Add company domain to check erase

        issue8906
        review256321002
diffstat:

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

diffs (11 lines):

diff -r 2121326c6936 -r 6a1f51678c15 party.py
--- a/party.py  Fri Dec 13 16:56:44 2019 +0100
+++ b/party.py  Sat Dec 14 10:47:54 2019 +0100
@@ -40,6 +40,7 @@
                 ]:
             shipments = Shipment.search([
                     (field, '=', party.id),
+                    ('company', '=', company.id),
                     ('state', 'not in', ['done', 'cancel']),
                     ])
             if shipments:

Reply via email to