changeset 32b85372e823 in modules/account_invoice:default
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=32b85372e823
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 5238020365b2 -r 32b85372e823 party.py
--- a/party.py Thu Dec 12 12:49:37 2019 +0100
+++ b/party.py Sat Dec 14 10:47:54 2019 +0100
@@ -95,6 +95,7 @@
invoices = Invoice.search([
('party', '=', party.id),
+ ('company', '=', company.id),
('state', 'not in', ['paid', 'cancel']),
])
if invoices: