From bbd633e3d31b78d62b294289d8768c78fd0def89 Mon Sep 17 00:00:00 2001 From: David Beal Date: Sun, 10 Sep 2023 19:10:45 +0200 Subject: [PATCH] FIX acc_facto_balance: _get_company() --- .../models/subrogation_receipt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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