1 <?xml version="1.0" encoding="utf-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>
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"/>
24 <field name="quantity_max" class="oe_inline"/>
27 <xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
29 <xpath expr='//separator[@name="description"]' position='before'>
30 <separator name="toinvoice" string="Invoicing"/>
31 <table class="oe_form_analytic_account">
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>
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"/>
47 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
49 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
51 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
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"
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]}"/>
63 <span attrs="{'invisible': [('fix_price_to_invoice','<>',0.0)]}" class="oe_grey">
64 No order to invoice, create
66 <button name="%(action_sales_order)d" string="Sale Orders"
69 context="{'default_partner_id': [partner_id], 'search_default_partner_id': [partner_id],'search_default_project_id': [active_id],'default_project_id': [active_id]}"
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"/>
78 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
80 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
82 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
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"
93 <span attrs="{'invisible': [('ca_to_invoice','<>',0.0)]}" class="oe_grey">
94 Nothing to invoice, create
97 <button name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d"
98 string="Timesheets" type="action"
100 context="{'default_account_id': active_id,'search_default_account_id': active_id}"/>
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"/>
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.
126 <field name="pricelist_id"
128 attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
129 <field name="to_invoice"
132 attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
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"/>
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.
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.
170 <menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config"/>