odoo/addons/analytic/analytic_view.xml

46 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_account_analytic_account_form" model="ir.ui.view">
<field name="name">analytic.analytic.account.form</field>
<field name="model">account.analytic.account</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<sheet string="Analytic account" >
<group colspan="4" col="4" class="oe_form_group_label_border">
<field name="name"/>
<field name="partner_id" on_change="on_change_partner_id(partner_id, name)" attrs="{'required':[('type','!=','template')]}"/>
<field name="code"/>
<field name="manager_id"/>
<field name="company_id" on_change="on_change_company(company_id)" select="2" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
<field name="type"/>
<field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract','template'])]}"/>
</group>
<notebook colspan="4">
<page string="Contract Information" name="contract_page" attrs="{'invisible':[('type','=','view')]}">
<group>
<group string="Validity" name="contract">
<field name="date_start"/>
<field name="date"/>
</group>
<group name="project">
<separator colspan="2" string="Project Management" name="project_sep" invisible="1"/>
</group>
<group name="toinvoice"></group>
</group>
<separator string="Terms and Conditions" colspan="4" name="description"/>
<field colspan="4" name="description" nolabel="1"/>
</page>
</notebook>
</sheet>
<div class="oe_form_bottom">
<field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
</div>
</form>
</field>
</record>
</data>
</openerp>