[IMP] analytic: Add the parent field on the template form

bzr revid: qdp-launchpad@openerp.com-20121129142712-yoluy6mxeh7a6ax1
This commit is contained in:
Quentin (OpenERP) 2012-11-29 15:27:12 +01:00
parent 574f096fce
commit 81035fea58
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
<group>
<field name="code"/>
<field name="type" invisible="context.get('default_type', False)"/>
<field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract','template'])]}"/>
<field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract'])]}"/>
<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'}"/>
<field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
</group>