Browse Source

[9.0][FIX] fix qweb financial reports that takes company from user and not from wizard

pull/267/head
Juan Jose Scarafia 8 years ago
parent
commit
570e6262f4
  1. 2
      account_financial_report_qweb/wizard/general_ledger_wizard.py
  2. 2
      account_financial_report_qweb/wizard/trial_balance_wizard.py

2
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

2
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

Loading…
Cancel
Save