[FIX] set analytic account line on expense line.
bzr revid: nco@tinyerp.com-20121119063828-g86valoppqs9h27f
This commit is contained in:
parent
66afff1b52
commit
10e3cfe72c
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue