[IMP]set xpath correctly

bzr revid: sgo@tinyerp.com-20120608131516-ae25wf3bd6l4vinb
This commit is contained in:
Sanjay Gohel (Open ERP) 2012-06-08 18:45:16 +05:30
parent 05c5a99b7a
commit 4cf3671e60
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
<field name="type">form</field>
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page[@string='Information']/group/field[@name='account_id']" position="replace">
<xpath expr="//field[@name='account_id']" position="replace">
<field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" select="1"/>
</xpath>
</field>
@ -89,7 +89,7 @@
<field name="type">form</field>
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
<field name="arch" type="xml">
<xpath expr="/form/group/field[@name='user_id']" position="replace">
<xpath expr="//field[@name='user_id']" position="replace">
<field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
</xpath>
</field>