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 29c9ff7664
commit a8dbc845ec
1 file changed
+1
+1
View File
@@ -28,6 +28,7 @@ class PartyErase(metaclass=PoolMeta):
works = Work.search([
('party', '=', party.id),
('company', '=', company.id),
('state', '!=', 'done'),
])
if works: