diff --git a/account_financial_report_qweb/wizard/general_ledger_wizard.py b/account_financial_report_qweb/wizard/general_ledger_wizard.py index c066cba0..328d77a1 100644 --- a/account_financial_report_qweb/wizard/general_ledger_wizard.py +++ b/account_financial_report_qweb/wizard/general_ledger_wizard.py @@ -77,7 +77,7 @@ class GeneralLedgerReportWizard(models.TransientModel): self.date_from = self.date_range_id.date_start self.date_to = self.date_range_id.date_end if self.date_from: - self.fy_start_date = self.env.user.company_id.find_daterange_fy( + self.fy_start_date = self.company_id.find_daterange_fy( fields.Date.from_string(self.date_range_id.date_start) ).date_start diff --git a/account_financial_report_qweb/wizard/trial_balance_wizard.py b/account_financial_report_qweb/wizard/trial_balance_wizard.py index 17abdfdd..2ddbf12a 100644 --- a/account_financial_report_qweb/wizard/trial_balance_wizard.py +++ b/account_financial_report_qweb/wizard/trial_balance_wizard.py @@ -71,7 +71,7 @@ class TrialBalanceReportWizard(models.TransientModel): self.date_from = self.date_range_id.date_start self.date_to = self.date_range_id.date_end if self.date_from: - self.fy_start_date = self.env.user.company_id.find_daterange_fy( + self.fy_start_date = self.company_id.find_daterange_fy( fields.Date.from_string(self.date_range_id.date_start) ).date_start