[FIX] Default company should not be used since it doesn't mutate when switching companies.

This commit is contained in:
Cas Vissers
2021-04-06 16:15:05 +02:00
committed by chaule97
parent ec9afd07a5
commit 6a3b23106e
7 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ class OpenItemsReportWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
required=False,
string="Company",
)