~camptocamp/openerp-swiss-localization/payment-slip-evolution-dunning-fees-support-nbi

« back to all changes in this revision

Viewing changes to l10n_ch_payment_slip/report/multi_report_webkit_html.py

  • Committer: Yannick Vaucher
  • Date: 2014-06-25 14:31:32 UTC
  • Revision ID: yannick.vaucher@camptocamp.com-20140625143132-l6aa3jcj56exitxn
newish style for self.pool

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
            'time': time,
42
42
            'cr': cr,
43
43
            'uid': uid,
44
 
            'user': self.pool.get("res.users").browse(cr, uid, uid),
 
44
            'user': self.pool['res.users'].browse(cr, uid, uid,
 
45
                                                  context=context),
45
46
            'mod10r': mod10r,
46
47
            '_space': AccountInvoice._space,
47
48
            '_get_ref': self._get_ref,
72
73
 
73
74
    def get_obj_reference(self, ids, context=None):
74
75
        cursor, uid = self.cr, self.uid
75
 
        move_line_obj = self.pool.get('account.move.line')
76
 
        account_obj = self.pool.get('account.account')
77
 
        invoice_obj = self.pool.get('account.invoice')
 
76
        move_line_obj = self.pool['account.move.line']
 
77
        account_obj = self.pool['account.account']
 
78
        invoice_obj = self.pool['account.invoice']
78
79
        inv = invoice_obj.browse(cursor, uid, ids[0], context=context)
79
80
        tier_account_ids = account_obj.search(
80
81
            cursor, uid,