[FIX] dead if statement

This commit is contained in:
unknown
2013-04-25 09:08:25 +02:00
parent 04d2dac21b
commit e0cfdc7820

View File

@@ -349,16 +349,15 @@ class AccountStatementCompletionRule(orm.Model):
'than one partner while looking on partner by name') % 'than one partner while looking on partner by name') %
(st_line['name'], st_line['ref'])) (st_line['name'], st_line['ref']))
res['partner_id'] = result[0][0] res['partner_id'] = result[0][0]
if res: st_vals = st_obj.get_values_for_line(cr,
st_vals = st_obj.get_values_for_line(cr, uid,
uid, profile_id=st_line['porfile_id'],
profile_id=st_line['porfile_id'], master_account_id=st_line['master_account_id'],
master_account_id=st_line['master_account_id'], partner_id=res['partner_id'],
partner_id=res['partner_id'], line_type=False,
line_type=False, amount=st_line['amount'] if st_line['amount'] else 0.0,
amount=st_line['amount'] if st_line['amount'] else 0.0, context=context)
context=context) res.update(st_vals)
res.update(st_vals)
return res return res