[FIX] website_event_sale: remove invalid code chunk introduced during previous forwar...
[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                         <div class="oe_right oe_button_box" name="buttons">
12                         </div>
13
14                         <div class="oe_title">
15                         <label for="name" class="oe_edit_only"/>
16                             <h1>
17                                 <field name="name" class="oe_inline"/>
18                             </h1>
19                             <div name="project"/>
20                         </div>
21
22                         <group name="main">
23                             <group>
24                                 <field name="partner_id" on_change="on_change_partner_id(partner_id, name)"/>
25                                 <field name="manager_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'account.group_account_manager']}"/>
26                                 <field name="currency_id" attrs="{'invisible': ['|',('type', '&lt;&gt;', 'view'), ('company_id', '&lt;&gt;', False)]}"/>
27                             </group>
28                             <group>
29                                 <field name="type" invisible="context.get('default_type', False)"/>
30                                 <field name="template_id" on_change="on_change_template(template_id, date_start)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/>
31                                 <field name="code"/>
32                                 <field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract'])]}"/>
33                                 <field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
34                             </group>
35                         </group>
36                         <notebook>
37                             <page string="Contract Information" name="contract_page" attrs="{'invisible':[('type','not in',['contract', 'template'])]}">
38                                 <group string="Renewal" name="contract">
39                                     <p colspan="2" class="oe_grey oe_edit_only">
40                                         Once the end date of the contract is
41                                         passed or the maximum number of service
42                                         units (e.g. support contract) is
43                                         reached, the account manager is notified 
44                                         by email to renew the contract with the
45                                         customer.
46                                     </p>
47                                     <field name="date_start"/>
48                                     <label for="date" string="End Date"/>
49                                     <div name="duration">
50                                         <field name="date" class="oe_inline"/>
51                                     </div>
52                                 </group>
53                                 <separator string="Terms and Conditions" name="description"/>
54                                 <field name="description"/>
55                             </page>
56                         </notebook>
57                     </sheet>
58                     <div class="oe_chatter">
59                         <field name="message_follower_ids" widget="mail_followers"/>
60                         <field name="message_ids" widget="mail_thread"/>
61                     </div>
62                 </form>
63             </field>
64         </record>
65      </data>
66 </openerp>