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):