[FIX] set analytic account line on expense line.

bzr revid: nco@tinyerp.com-20121119063828-g86valoppqs9h27f
This commit is contained in:
Nimesh (Open ERP) 2012-11-19 12:08:28 +05:30
parent 66afff1b52
commit 10e3cfe72c
2 changed files with 2 additions and 1 deletions

View File

@ -136,6 +136,7 @@ class account_analytic_account(osv.osv):
'name': name,
'view_type': 'form',
'view_mode': 'tree,form',
'context':{'analytic_account':ids[0]},
'domain' : domain,
'res_model': 'hr.expense.expense',
'nodestroy': True,

View File

@ -85,7 +85,7 @@
</group>
<notebook>
<page string="Description">
<field name="line_ids" context="{'currency_id': currency_id}">
<field name="line_ids" context="{'currency_id': currency_id, 'default_analytic_account': context.get('analytic_account')}">
<form string="Expense Lines" version="7.0">
<group>
<group>