From cd8f0ee3395a2a31583760eb91d3ac0b134f1041 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Mon, 4 Apr 2022 20:23:40 +0200 Subject: [PATCH] [fix] error default company_id --- models/scop_cotisation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/scop_cotisation.py b/models/scop_cotisation.py index f44ace3..931e568 100644 --- a/models/scop_cotisation.py +++ b/models/scop_cotisation.py @@ -26,7 +26,7 @@ class ScopCotisation(models.AbstractModel): change_default=True, required=True, readonly=True, - default=lambda self: self.env.user.company_id, + default=lambda self: self.env.company, ) company_currency_id = fields.Many2one( -- GitLab