[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:
@@ -16,12 +16,6 @@ class TrialBalanceReportWizard(models.TransientModel):
|
||||
_description = "Trial Balance Report Wizard"
|
||||
_inherit = "account_financial_report_abstract_wizard"
|
||||
|
||||
company_id = fields.Many2one(
|
||||
comodel_name="res.company",
|
||||
default=lambda self: self.env.company,
|
||||
required=False,
|
||||
string="Company",
|
||||
)
|
||||
date_range_id = fields.Many2one(comodel_name="date.range", string="Date range")
|
||||
date_from = fields.Date(required=True)
|
||||
date_to = fields.Date(required=True)
|
||||
|
||||
Reference in New Issue
Block a user