Launchpad automatic translations update.
[odoo/odoo.git] / addons / account_analytic_analysis / account_analytic_analysis_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <!--
6         Analytic Account form
7         -->
8
9         <record model="ir.actions.act_window" id="action_sales_order">
10             <field name="name">Sales Orders</field>
11             <field name="res_model">sale.order</field>
12             <field name="src_model">account.analytic.account</field>
13         </record>
14
15         <record id="account_analytic_account_form_form" model="ir.ui.view">
16             <field name="name">account.analytic.account.invoice.form.inherit</field>
17             <field name="model">account.analytic.account</field>
18             <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
19             <field eval="40" name="priority"/>
20             <field name="arch" type="xml">
21                 <xpath expr='//div[@name="duration"]' position="after" version="7.0">
22                     <label for="quantity_max"/>
23                     <div>
24                         <field name="quantity_max" class="oe_inline"/>
25                     </div>
26                 </xpath>
27                 <xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
28                 </xpath>
29                 <xpath expr='//separator[@name="description"]' position='before'>
30                     <separator name="toinvoice" string="Invoicing"/>
31                     <table class="oe_form_analytic_account">
32                         <tr>
33                             <th class="oe_timesheet_grey" width="160px"></th>
34                             <th class="oe_timesheet_grey" width="25px"></th>
35                             <th class="oe_timesheet_grey" width="100px"><label string="Expected"/></th>
36                             <th class="oe_timesheet_grey" width="100px"><label string="Invoiced"/></th>
37                             <th class="oe_timesheet_grey" width="100px"><label string="Remaining"/></th>
38                             <th class="oe_timesheet_grey" width="100px"><label string="To Invoice"/></th>
39                             <th width="30px"></th>
40                             <th></th>
41                         </tr><tr>
42                             <td class="oe_timesheet_grey">
43                                 <label for="fix_price_invoices"/>
44                             </td><td class="oe_timesheet_grey">
45                                 <field name="fix_price_invoices" class="oe_inline"/>
46                             </td><td>
47                                 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
48                             </td><td>
49                                 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
50                             </td><td>
51                                 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
52                             </td><td>
53                                 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
54                             </td><td attrs="{'invisible': [('fix_price_invoices','=',False)]}" class="oe_timesheet_action">
55                                 <span attrs="{'invisible': [('fix_price_to_invoice','=',0.0)]}" class="oe_grey">
56                                     <button name="open_sale_order_lines"
57                                         class="oe_link"
58                                         string="⇒ Invoice" type="object"
59                                         context="{'default_partner_id': [partner_id],'default_project_id': active_id,'search_default_uninvoiced': 1,'search_default_project_id': active_id,'search_default_partner_id': [partner_id]}"/>
60                                     or view
61                                 </span>
62
63                                 <span attrs="{'invisible': [('fix_price_to_invoice','&lt;&gt;',0.0)]}" class="oe_grey">
64                                     No order to invoice, create
65                                 </span>
66                                 <button name="%(action_sales_order)d" string="Sale Orders"
67                                     type="action"
68                                     class="oe_link"
69                                     context="{'default_partner_id': [partner_id], 'search_default_partner_id': [partner_id],'search_default_project_id': [active_id],'default_project_id': [active_id]}"
70                                     />
71                             </td>
72                         </tr><tr>
73                             <td class="oe_timesheet_grey">
74                                 <label for="invoice_on_timesheets"/>
75                             </td><td class="oe_timesheet_grey">
76                                 <field name="invoice_on_timesheets"/>
77                             </td><td>
78                                 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
79                             </td><td>
80                                 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
81                             </td><td>
82                                 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
83                             </td><td>
84                                 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
85                             </td><td class="oe_timesheet_action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}">
86                                 <span attrs="{'invisible': [('ca_to_invoice','=',0.0)]}" class="oe_grey">
87                                     <button name="%(hr_timesheet_invoice.action_hr_timesheet_invoice_create_final)d"
88                                         type="action"
89                                         class="oe_link"
90                                         string="⇒ Invoice"/>
91                                     or view 
92                                 </span>
93                                 <span attrs="{'invisible': [('ca_to_invoice','&lt;&gt;',0.0)]}" class="oe_grey">
94                                     Nothing to invoice, create 
95                                 </span>
96
97                                 <button name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d"
98                                     string="Timesheets" type="action"
99                                     class="oe_link"
100                                     context="{'default_account_id': active_id,'search_default_account_id': active_id}"/>
101                             </td>
102                         </tr><tr name='total'>
103                             <th class="oe_timesheet_grey">
104                                 <label string="Total"/>
105                             </th><td class="oe_timesheet_grey">
106                             </td><td class="oe_timesheet_grey">
107                                 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
108                             </td><td class="oe_timesheet_grey">
109                                 <field name="invoiced_total" class="oe_inline"/>
110                             </td><td class="oe_timesheet_grey">
111                                 <field name="remaining_total" class="oe_inline"/>
112                             </td><td class="oe_timesheet_grey">
113                                 <field name="toinvoice_total" class="oe_inline"/>
114                             </td><td>
115                             </td>
116                         </tr>
117                     </table>
118                     <group name='invoice_on_timesheets' attrs="{'invisible': [('invoice_on_timesheets','=',False)]}">
119                         <p class="oe_grey oe_edit_only" colspan="2">
120                             When invoicing on timesheet, OpenERP uses the
121                             pricelist of the contract which uses the price
122                             defined on the product related to each employee to
123                             define the customer invoice price rate.
124                         </p>
125                         <group>
126                             <field name="pricelist_id"
127                                 class="oe_inline"
128                                 attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
129                             <field name="to_invoice"
130                                 class="oe_inline"
131                                 widget="selection"
132                                 attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
133                         </group>
134                     </group>
135                  </xpath>
136             </field>
137         </record>
138
139         <record id="view_account_analytic_account_tree_c2c_3" model="ir.ui.view">
140             <field name="name">account.analytic.account.tree</field>
141             <field name="model">account.analytic.account</field>
142             <field name="inherit_id" ref="account.view_account_analytic_account_list"/>
143             <field name="arch" type="xml">
144                 <field name="date" position="before">
145                     <field name="last_invoice_date"/>
146                     <field name="toinvoice_total"/>
147                 </field>
148             </field>
149         </record>
150
151         <record id="template_of_contract_action" model="ir.actions.act_window">
152             <field name="name">Template of Contract</field>
153             <field name="type">ir.actions.act_window</field>
154             <field name="res_model">account.analytic.account</field>
155             <field name="view_type">form</field>
156             <field name="view_mode">tree,form</field>
157             <field name="domain">[('type','=','template')]</field>
158             <field name="context">{'search_default_type':'template','default_type' : 'template'}</field>
159             <field name="help" type="html">
160                 <p class="oe_view_nocontent_create">
161                     Click here to create a template of contract.
162                 </p><p>
163                     Templates are used to prefigure contract/project that 
164                     can be selected by the salespeople to quickly configure the
165                     terms and conditions of the contract.
166                 </p>
167             </field>
168              
169         </record>
170         <menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config"/>
171     </data>
172 </openerp>