Browse Source

Merge pull request #267 from adhoc-dev/9.0-fix-qweb-report-multicompany

[9.0][FIX] fix qweb financial reports takes company from user not from wizard
pull/269/head
Alexis de Lattre 7 years ago
committed by GitHub
parent
commit
325c628f15
  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