~vauxoo/openerp-venezuela-localization/ovl70-whmuni-rev-kty

« back to all changes in this revision

Viewing changes to l10n_ve_withholding_muni/model/invoice.py

  • Committer: Katherine Zaoral
  • Date: 2013-01-29 19:01:16 UTC
  • Revision ID: katherine.zaoral@vauxoo.com-20130129190116-r4oemmmyxunido3q
[IMP] Context Signature Changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
                            pay_journal_id, writeoff_acc_id,
35
35
                            writeoff_period_id, writeoff_journal_id, date,
36
36
                            name, context=None):
37
 
        if context is None:
38
 
            context = {}
 
37
        context = context or {}
39
38
        res = super(account_invoice, self)._get_move_lines(cr, uid, ids, to_wh,
40
39
                            period_id, pay_journal_id, writeoff_acc_id,
41
40
                            writeoff_period_id, writeoff_journal_id, date,
63
62
            }))
64
63
        return res
65
64
 
66
 
    def _retenida_munici(self, cr, uid, ids, name, args, context):
 
65
    def _retenida_munici(self, cr, uid, ids, name, args, context=None):
 
66
        context = context or {}
67
67
        res = {}
68
68
        for id in ids:
69
69
            res[id] = self.test_retenida_muni(cr, uid, [id], 'retmun')
89
89
        ok = ok and  bool(cr.fetchone())
90
90
        return ok
91
91
 
92
 
    def _get_inv_munici_from_line(self, cr, uid, ids, context={}):
 
92
    def _get_inv_munici_from_line(self, cr, uid, ids, context=None):
 
93
        context = context or {}
93
94
        move = {}
94
95
        for line in self.pool.get('account.move.line').browse(cr, uid, ids):
95
96
            if line.reconcile_partial_id:
104
105
                         [('move_id', 'in', move.keys())], context=context)
105
106
        return invoice_ids
106
107
 
107
 
    def _get_inv_munici_from_reconcile(self, cr, uid, ids, context={}):
 
108
    def _get_inv_munici_from_reconcile(self, cr, uid, ids, context=None):
 
109
        context = context or {}
108
110
        move = {}
109
111
        for r in self.pool.get('account.move.reconcile').browse(cr, uid, ids):
110
112
            for line in r.line_partial_ids: