[MERGE] lp:899022 (account_voucher: add missing variable definition)
authorRaphael Collet <rco@openerp.com>
Fri, 16 Dec 2011 15:31:02 +0000 (16:31 +0100)
committerRaphael Collet <rco@openerp.com>
Fri, 16 Dec 2011 15:31:02 +0000 (16:31 +0100)
bzr revid: rco@openerp.com-20111216153102-8l1buk4jkip4cjx5

1  2 
addons/account_voucher/account_voucher.py

@@@ -986,12 -843,11 +986,13 @@@ class account_voucher(osv.osv)
          :param company_currency: id of currency of the company to which the voucher belong
          :param current_currency: id of currency of the voucher
          :return: Tuple build as (remaining amount not allocated on voucher lines, list of account_move_line created in this method)
 -        :rtype: tuple(int, list of int)
 +        :rtype: tuple(float, list of int)
          '''
 +        if context is None:
 +            context = {}
          move_line_obj = self.pool.get('account.move.line')
          currency_obj = self.pool.get('res.currency')
+         tax_obj = self.pool.get('account.tax')
          tot_line = line_total
          rec_lst_ids = []