~account-report-core-editor/account-financial-report/7.0-git

« back to all changes in this revision

Viewing changes to account_financial_report_webkit/report/common_partner_balance_reports.py

  • Committer: Guewen Baconnier
  • Date: 2015-05-01 11:37:43 UTC
  • mfrom: (112.1.1)
  • Revision ID: git-v1:f336b555631386465505b98415075f36ab4e5ec9
Merge pull request #73 from mdietrichc2c/context-account-reports

Add context to account browse() methods (for translation)

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
                comp_accounts_by_ids.append(comparison_result)
281
281
        objects = []
282
282
 
283
 
        for account in self.pool.get('account.account').browse(self.cursor,
284
 
                                                               self.uid,
285
 
                                                               account_ids):
 
283
        for account in self.pool.get('account.account').browse(
 
284
                self.cursor, self.uid, account_ids, context=self.localcontext):
286
285
            if not account.parent_id:  # hide top level account
287
286
                continue
288
287
            account.debit = accounts_by_ids[account.id]['debit']