[Fix] hr_expense: fix the field name

bzr revid: sbh@tinyerp.com-20120307104942-r2674ngetk44b0y6
This commit is contained in:
Bhumika (OpenERP) 2012-03-07 16:19:42 +05:30
parent 7419c49725
commit e6eb4f31ad
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class hr_expense_expense(osv.osv):
'invoice_line': lines,
'currency_id': exp.currency_id.id,
'payment_term': payment_term_id,
'fiscal_position': exp.employee_id.address_home_id.partner_id.property_account_position.id
'fiscal_position': exp.employee_id.address_home_id.property_account_position.id
}
if payment_term_id:
to_update = invoice_obj.onchange_payment_term_date_invoice(cr, uid, [], payment_term_id, None)