[FIX] account_voucher: generate empty context to avoid traceback
authorMartin Trigaux <mat@openerp.com>
Wed, 21 Aug 2013 12:17:14 +0000 (14:17 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 21 Aug 2013 12:17:14 +0000 (14:17 +0200)
bzr revid: mat@openerp.com-20130821121714-5q5qa56suab0dehs

1  2 
addons/account_voucher/account_voucher.py

@@@ -893,6 -893,8 +893,8 @@@ class account_voucher(osv.osv)
          return res
  
      def onchange_journal(self, cr, uid, ids, journal_id, line_ids, tax_id, partner_id, date, amount, ttype, company_id, context=None):
+         if context is None:
 -            context ={}
++            context = {}
          if not journal_id:
              return False
          journal_pool = self.pool.get('account.journal')