Add company domain to check erase

issue8906
review256321002
This commit is contained in:
Cédric Krier committed 2019-12-14 10:47:54 +01:00
1 parent 0366e5b818
commit 00f1e57165
1 file changed
+1
+1
View File
@@ -54,6 +54,7 @@ class PartyErase(metaclass=PoolMeta):
purchases = Purchase.search([
('party', '=', party.id),
('company', '=', company.id),
('state', 'not in', ['done', 'cancel']),
])
if purchases: