changeset e0511a685d00 in modules/purchase:default
details: https://hg.tryton.org/modules/purchase?cmd=changeset;node=e0511a685d00
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 e1bf5df1b996 -r e0511a685d00 party.py
--- a/party.py  Fri Dec 06 17:33:46 2019 +0100
+++ b/party.py  Sat Dec 14 10:47:54 2019 +0100
@@ -54,6 +54,7 @@
 
         purchases = Purchase.search([
                 ('party', '=', party.id),
+                ('company', '=', company.id),
                 ('state', 'not in', ['done', 'cancel']),
                 ])
         if purchases:

Reply via email to