1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="project_account_analytic_account_form" model="ir.ui.view">
5 <field name="name">project.project.form.inherit</field>
6 <field name="model">project.project</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="project.edit_project"/>
9 <field eval="18" name="priority"/>
10 <field name="arch" type="xml">
11 <xpath expr='//page[@name="team"]' position='after'>
12 <page string="Contract Data">
14 <group string="Validity">
15 <field name="date_start"/>
17 <label for="quantity_max"/>
19 <field name="quantity_max" class="oe_form_inline"/>
20 <field name="company_uom_id" readonly="1" class="oe_form_inline"/> / Remaining:
21 <field name="remaining_hours" class="oe_form_inline"/>
22 <field name="company_uom_id" readonly="1" class="oe_form_inline"/>
25 <group string="Invoice Options">
26 <field name="manager_id" />
27 <field name="pricelist_id" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
28 <field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
31 <separator name="toinvoice" string="Invoicing"/>
36 <th><label string="Est.Tot"/></th>
37 <th><label string="Invoiced"/></th>
38 <th><label string="Remaining"/></th>
39 <th><label string="To Invoice"/></th>
43 <label for="fix_price_invoices"/>
45 <field name="fix_price_invoices" class="oe_form_inline"/>
47 <field class="oe_form_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
49 <field class="oe_form_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
51 <field class="oe_form_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
53 <field class="oe_form_inline" name="ca_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
55 <button name="%(account_analytic_analysis.action_sales_order)d" string="All Sales" type="action" context="{'default_partner_id': [partner_id], 'search_default_partner_id': [partner_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
56 <button name="%(sale.action_order_line_tree2)d" string="Lines To Invoice" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/></td>
57 </tr><tr nameattrs="{'invisible':[('use_timesheets','=',False)]}">
59 <label for="invoice_on_timesheets"/>
61 <field name="invoice_on_timesheets"/>
63 <field class="oe_form_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
65 <field class="oe_form_inline" name="hours_qtt_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
67 <field class="oe_form_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
69 <field class="oe_form_inline" name="hours_qtt_non_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
71 <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}"/>
72 <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)]}"/>
76 <label string="Total"/>
79 <field name="est_total" class="oe_form_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
81 <field name="invoiced_total" class="oe_form_inline"/>
83 <field name="remaining_total" class="oe_form_inline"/>
85 <field name="toinvoice_total" class="oe_form_inline"/>
90 <separator string="Terms and Conditions" name="description"/>
91 <field name="description"/>
97 <record id="project_invoice_form" model="ir.ui.view">
98 <field name="name">Inherit project form : Invoicing Data</field>
99 <field name="model">project.project</field>
100 <field name="type">form</field>
101 <field name="inherit_id" ref="project.edit_project"/>
102 <field name="arch" type="xml">
103 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
105 <td><group><field name="use_timesheets"/></group></td>
106 <td><button icon="terp-gtk-go-back-rtl" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>