[Fix] hr_expense: fix the field name
bzr revid: sbh@tinyerp.com-20120307104942-r2674ngetk44b0y6
This commit is contained in:
parent
7419c49725
commit
e6eb4f31ad
|
@ -198,7 +198,7 @@ class hr_expense_expense(osv.osv):
|
||||||
'invoice_line': lines,
|
'invoice_line': lines,
|
||||||
'currency_id': exp.currency_id.id,
|
'currency_id': exp.currency_id.id,
|
||||||
'payment_term': payment_term_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:
|
if payment_term_id:
|
||||||
to_update = invoice_obj.onchange_payment_term_date_invoice(cr, uid, [], payment_term_id, None)
|
to_update = invoice_obj.onchange_payment_term_date_invoice(cr, uid, [], payment_term_id, None)
|
||||||
|
|
Loading…
Reference in New Issue