[FIX] Account : making the default_get() eTiny compatible

lp bug: https://launchpad.net/bugs/490342 fixed

bzr revid: jvo@tinyerp.com-20091201135539-33qrq2g81un1lyr8
This commit is contained in:
Jay (Open ERP) 2009-12-01 19:25:39 +05:30
parent b69980a384
commit 0b44aff80b
1 changed files with 4 additions and 3 deletions

View File

@ -104,9 +104,10 @@ class account_move_line(osv.osv):
total_new=0.00
for i in context['lines']:
total_new +=(i[2]['debit'] or 0.00)- (i[2]['credit'] or 0.00)
for item in i[2]:
data[item]=i[2][item]
if i[2]:
total_new +=(i[2]['debit'] or 0.00)- (i[2]['credit'] or 0.00)
for item in i[2]:
data[item]=i[2][item]
if context['journal']:
journal_obj=self.pool.get('account.journal').browse(cr,uid,context['journal'])
if journal_obj.type == 'purchase':