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 8881739a64
commit abef9a7a8b
1 file changed
+1
+1
View File
@@ -40,6 +40,7 @@ class PartyErase(metaclass=PoolMeta):
]:
shipments = Shipment.search([
(field, '=', party.id),
('company', '=', company.id),
('state', 'not in', ['done', 'cancel']),
])
if shipments: