~equipovision/account-financial-report/trunk

« back to all changes in this revision

Viewing changes to account_financial_report_webkit/report/common_reports.py

  • Committer: Guewen Baconnier
  • Author(s): Matthieu Dietrich
  • Date: 2014-01-31 11:18:35 UTC
  • mfrom: (61.1.1 account-financial-report)
  • Revision ID: guewen.baconnier@camptocamp.com-20140131111835-yeaqz48i42fqy6dr
[FIX] opening period search is now accounting for company

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
        return period_obj.search(self.cursor, self.uid,
227
227
                                 [('special', '=', True),
228
228
                                  ('date_start', '>=', period.date_start),
229
 
                                  ('date_stop', '<=', period.date_stop)],
 
229
                                  ('date_stop', '<=', period.date_stop),
 
230
                                  ('company_id', '=', period.company_id.id)],
230
231
                                  limit=1)
231
232
 
232
233
    def periods_contains_move_lines(self, period_ids):