[13.0][FIX] account_financial_report: Correct all uses of
self.env.user.company_id. Also move company_id to the wizard abstract model.
This commit is contained in:
@@ -12,7 +12,7 @@ class JournalLedgerReportWizard(models.TransientModel):
|
||||
|
||||
company_id = fields.Many2one(
|
||||
comodel_name="res.company",
|
||||
default=lambda self: self.env.company,
|
||||
default=lambda self: self.env.company.id,
|
||||
string="Company",
|
||||
required=False,
|
||||
ondelete="cascade",
|
||||
|
||||
Reference in New Issue
Block a user