Browse Source

don't use find_daterange_fy_start: it was removed

The method find_daterange_fy_start used to be in account_fiscal_year but
it was removed in
https://github.com/OCA/account-financial-tools/pull/378/commits/073f324df
pull/196/head
Leonardo Pistone 9 years ago
parent
commit
d41e6e396a
  1. 5
      account_financial_report_qweb/wizard/ledger_report_wizard.py

5
account_financial_report_qweb/wizard/ledger_report_wizard.py

@ -192,8 +192,9 @@ class LedgerReportWizard(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.date_range_id.find_daterange_fy_start(
fields.Date.from_string(self.date_range_id.date_start))
self.fy_start_date = self.env.user.company_id.find_daterange_fy(
fields.Date.from_string(self.date_range_id.date_start)
).date_start
class LedgerReportWizardLine(models.TransientModel):

Loading…
Cancel
Save