enable all functions for deleted company

This commit is contained in:
Matthias 2022-04-01 23:55:08 +02:00
parent c278a5397f
commit 57f9ef75e9
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -96,7 +96,14 @@ def get_deleted_company():
"""
Returns the deleted company object
"""
return Company.objects.get_or_create(name='deleted', email='deleted', is_deleted=True)[0]
return Company.objects.get_or_create(
name='deleted',
email='deleted',
is_deleted=True,
is_customer = True,
is_supplier = True,
is_manufacturer = True
)[0]
class Order(ReferenceIndexingMixin):