1 <?xml version="1.0" encoding="utf-8"?>
10 id="action_sales_order"
12 res_model="sale.order"
13 src_model="account.analytic.account"
16 <record id="account_analytic_account_form_form" model="ir.ui.view">
17 <field name="name">account.analytic.account.invoice.form.inherit</field>
18 <field name="model">account.analytic.account</field>
19 <field name="type">form</field>
20 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
21 <field eval="40" name="priority"/>
22 <field name="arch" type="xml">
23 <xpath expr='//field[@name="type"]' position='after'>
24 <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 <xpath expr='//div[@name="duration"]' position="after" version="7.0">
27 <label for="quantity_max"/>
29 <field name="quantity_max" class="oe_inline"/> / Remaining: <field name="remaining_hours" class="oe_inline"/>
32 <xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
33 <group name='invoice_on_timesheets' string="Invoice on Timesheets Options" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}" col="4">
34 <field name="pricelist_id" attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
35 <field name="to_invoice" widget="selection" attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
38 <xpath expr='//group[@name="master"]' position='after'>
39 <separator name="toinvoice" string="Invoicing"/>
44 <th><label string="Est.Tot"/></th>
45 <th><label string="Invoiced"/></th>
46 <th><label string="Remaining"/></th>
47 <th><label string="To Invoice"/></th>
51 <label for="fix_price_invoices"/>
53 <field name="fix_price_invoices" class="oe_inline"/>
55 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
57 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
59 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
61 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
63 <button name="%(action_sales_order)d" string="All Sales" type="action" context="{'default_partner_id': [partner_id], 'search_default_partner_id': [partner_id],'search_default_project_id': [active_id],'default_project_id': [active_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
64 <button name="open_sale_order_lines" string="Lines To Invoice" type="object" 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]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
66 </tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
68 <label for="invoice_on_timesheets"/>
70 <field name="invoice_on_timesheets"/>
72 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
74 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
76 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
78 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
80 <button name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="All Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}" context="{'default_account_id': active_id,'search_default_account_id': active_id}"/>
81 <button name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d" string="Timesheets to Invoice" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
83 </tr><tr name='total'>
85 <label string="Total"/>
88 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
90 <field name="invoiced_total" class="oe_inline"/>
92 <field name="remaining_total" class="oe_inline"/>
94 <field name="toinvoice_total" class="oe_inline"/>
103 <record id="view_account_analytic_account_tree_c2c_3" model="ir.ui.view">
104 <field name="name">account.analytic.account.tree</field>
105 <field name="model">account.analytic.account</field>
106 <field name="inherit_id" ref="account.view_account_analytic_account_list"/>
107 <field name="type">tree</field>
108 <field name="arch" type="xml">
109 <field name="date" position="before">
110 <field name="last_invoice_date"/>
111 <field name="toinvoice_total"/>
116 <record id="template_of_contract_action" model="ir.actions.act_window">
117 <field name="name">Template of Contract</field>
118 <field name="type">ir.actions.act_window</field>
119 <field name="res_model">account.analytic.account</field>
120 <field name="view_type">form</field>
121 <field name="view_mode">tree,form</field>
122 <field name="domain">[('type','=','template')]</field>
123 <field name="context">{'search_default_type':'template','default_type' : 'template'}</field>
125 <menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config"/>