diff --git a/account_factoring_receivable_balance/models/subrogation_receipt.py b/account_factoring_receivable_balance/models/subrogation_receipt.py index 5d55f1b..1f4c7b6 100644 --- a/account_factoring_receivable_balance/models/subrogation_receipt.py +++ b/account_factoring_receivable_balance/models/subrogation_receipt.py @@ -270,4 +270,4 @@ def unlink(self): return super().unlink() def _get_company_id(self): - return self.env.user.company_id.id + return self.env.company.id