[IMP]:pass the context parameter in onchange

bzr revid: apa@tinyerp.com-20120612093020-019ycc7wmn03gczz
This commit is contained in:
Amit Patel (OpenERP) 2012-06-12 15:00:20 +05:30
parent 6c2f1fcf1e
commit 0400ae4047
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
<field eval="18" name="priority"/>
<field name="arch" type="xml">
<xpath expr='//field[@name="type"]' position='after'>
<field name="template_id" on_change="on_change_template(template_id)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/>
<field name="template_id" on_change="on_change_template(template_id,context)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/>
</xpath>
<xpath expr='//field[@name="date"]' position="after">
<group col="6" colspan="2" class="oe_form_group_label_border">