add message_followers_ids
[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"/>
14                         </h1>
15                         <group>
16                             <group>
17                                 <field name="partner_id" on_change="on_change_partner_id(partner_id, name)" attrs="{'required':[('type','=','contract')]}"/>
18                                 <field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract','template'])]}"/>
19                                 <field name="type"/>
20                                 <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'}"/>
21                             </group>
22                             <group>
23                                 <field name="code"/>
24                                 <field name="manager_id"/>
25                                 <field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
26                             </group>
27                         </group>
28                         <notebook>
29                             <page string="Contract Information" name="contract_page" attrs="{'invisible':[('type','not in',['contract', 'template'])]}">
30                                 <group name="master">
31                                     <group string="Validity" name="contract">
32                                         <label for="date_start" string="Duration"/>
33                                         <div name="duration">
34                                             <field name="date_start" class="oe_inline"/> - <field name="date" class="oe_inline"/>
35                                         </div>
36                                     </group>
37                                     <group name="project">
38                                         <separator string="Project Management" name="project_sep" invisible="1"/>
39                                     </group>
40                                 </group>
41                                 <separator string="Terms and Conditions" name="description"/>
42                                 <field name="description"/>
43                             </page>
44                         </notebook>
45                     </sheet>
46                     <div class="oe_chatter">
47                         <field name="message_ids" widget="mail_thread"/>
48                         <field name="message_follower_ids" widget="mail_followers"/>
49                     </div>
50                 </form>
51             </field>
52         </record>
53      </data>
54 </openerp>