From 4a08aee8d84b3051643aef1cd9d3ea9e38e8cfda Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 29 Dec 2010 16:07:46 +0100 Subject: [PATCH] [FIX] Fixed small problem whith on_change method in account voucher. bzr revid: nicolas.vanhoren@openerp.com-20101229150746-9w1853e1j0u40oej --- addons/account_voucher/account_voucher.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 4e08ad9112b..481fef477e1 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -49,8 +49,9 @@ account_move_line() class account_voucher(osv.osv): - def _get_type(self, cr, uid, ids, context=None): - if context is None: context = {} + def _get_type(self, cr, uid, context=None): + if context is None: + context = {} return context.get('type', False) def _get_period(self, cr, uid, context=None):