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/367/head
Leonardo Pistone 2016-06-03 16:16:57 +02:00 committed by Jordi Ballester
parent e62a59f790
commit d8a2d2cc83
1 changed files with 3 additions and 2 deletions

View File

@ -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):