1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="view_account_analytic_account_form" model="ir.ui.view">
6 <field name="name">analytic.analytic.account.form</field>
7 <field name="model">account.analytic.account</field>
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <form layout="manual">
11 <sheet string="Analytic account" layout="auto">
12 <group colspan="4" col="4" class="oe_form_group_label_border">
13 <field name="name" string="Contract/Project Name"/>
14 <field name="partner_id" on_change="on_change_partner_id(partner_id)" required="True"/>
16 <field name="user_id"/>
17 <field name="company_id" on_change="on_change_company(company_id)" select="2" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','<>','view')]}"/>
18 <field name="type" select="2" attrs="{'invisible': [('type','in',['contract','template'])]}"/>
19 <field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract','template'])]}"/>
21 <notebook colspan="4">
22 <page string="Contract Information" name="contract_page">
23 <group colspan="2" col= "2" name="contract" class="oe_form_group_label_border">
24 <separator colspan="2" string="Validity"/>
25 <field name="date_start"/>
28 <group colspan="2" col="2" name="project" class="oe_form_group_label_border">
29 <separator colspan="2" string="Project" name="project_sep" invisible="1"/>
31 <separator string="Terms and Condition" colspan="4" name="description"/>
32 <field colspan="4" name="description" nolabel="1"/>