[FIX] Default company should not be used since it doesn't mutate when switching companies.
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user