[FIX] Fixed small problem whith on_change method in account voucher.

bzr revid: nicolas.vanhoren@openerp.com-20101229150746-9w1853e1j0u40oej
This commit is contained in:
niv-openerp
2010-12-29 16:07:46 +01:00
parent 3ecea6df63
commit 4a08aee8d8
+3 -2
View File
@@ -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):