[FIX] contract: Error in test_contract_invoice_followers

This commit is contained in:
Víctor Martínez
2021-02-02 10:34:23 +01:00
committed by Christopher Rogos
parent b0e941de1e
commit 7cf5d4547c
3 changed files with 10 additions and 7 deletions

View File

@@ -539,7 +539,7 @@ class ContractContract(models.Model):
@api.model
def _invoice_followers(self, invoices):
invoice_create_subtype = self.sudo().env.ref(
invoice_create_subtype = self.env.ref(
"contract.mail_message_subtype_invoice_created"
)
for item in self: