[IMP] analytic contracts
[odoo/odoo.git] / addons / analytic / analytic_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
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="arch" type="xml">
9                 <form string="Analytic Account" version="7.0">
10                     <sheet string="Analytic Account">
11                         <label for="name" class="oe_edit_only"/>
12                         <h1>
13                             <field name="name" class="oe_inline"/>
14                         </h1>
15                         <div name="project"/>
16                         <group>
17                             <group>
18                                 <field name="partner_id" on_change="on_change_partner_id(partner_id, name)" attrs="{'required':[('type','=','contract')]}"/>
19                                 <field name="manager_id"/>
20                                 <field name="code"/>
21                             </group>
22                             <group>
23                                 <field name="type"/>
24                                 <field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract','template'])]}"/>
25                                 <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'}"/>
26                                 <field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
27                             </group>
28                         </group>
29                         <notebook>
30                             <page string="Contract Information" name="contract_page" attrs="{'invisible':[('type','not in',['contract', 'template'])]}">
31                                 <group string="Renewal" name="contract">
32                                     <p colspan="2" class="oe_grey oe_edit_only">
33                                         Once the end date of the contract is
34                                         passed or the maximum number of service
35                                         units is reached, the account manager
36                                         is warned by email to renew the contract.
37                                     </p>
38                                     <label for="date" string="End Date"/>
39                                     <div name="duration">
40                                         <field name="date" class="oe_inline"/>
41                                     </div>
42                                 </group>
43                                 <separator string="Terms and Conditions" name="description"/>
44                                 <field name="description"/>
45                             </page>
46                         </notebook>
47                     </sheet>
48                     <div class="oe_chatter">
49                         <field name="message_ids" widget="mail_thread"/>
50                         <field name="message_follower_ids" widget="mail_followers"/>
51                     </div>
52                 </form>
53             </field>
54         </record>
55      </data>
56 </openerp>