[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
parent 623d788876
commit 2b87ec9a82
2 changed files with 9 additions and 6 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: