1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="project_account_analytic_account_form" model="ir.ui.view">
6 <field name="name">project.project.form.inherit</field>
7 <field name="model">project.project</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 <label for="date_start" string="Duration"/>
17 <field name="date_start" class="oe_inline"/>
18 <label attrs="{'invisible':[('date','=',False)]}" class="oe_inline" string=" - "/>
19 <field name="date" class="oe_inline"/>
21 <label for="quantity_max"/>
23 <field name="quantity_max" class="oe_inline"/>
24 <field name="company_uom_id" readonly="1" class="oe_inline"/> / Remaining:
25 <field name="remaining_hours" class="oe_inline"/>
26 <field name="company_uom_id" readonly="1" class="oe_inline"/>
29 <group string="Invoice Options">
30 <field name="manager_id" />
31 <field name="pricelist_id" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
32 <field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
35 <separator name="toinvoice" string="Invoicing"/>
40 <th><label string="Est.Tot"/></th>
41 <th><label string="Invoiced"/></th>
42 <th><label string="Remaining"/></th>
43 <th><label string="To Invoice"/></th>
47 <label for="fix_price_invoices"/>
49 <field name="fix_price_invoices" class="oe_inline"/>
51 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
53 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
55 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
57 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
59 <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], 'default_project_id': analytic_account_id, 'search_default_project_id': analytic_account_id}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
60 <button name="open_sale_order_lines" string="Lines To Invoice" type="object" context="{'default_partner_id': [partner_id],'default_project_id': analytic_account_id,'search_default_uninvoiced': 1,'search_default_project_id': analytic_account_id,'search_default_partner_id': [partner_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/></td>
61 </tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
63 <label for="invoice_on_timesheets"/>
65 <field name="invoice_on_timesheets"/>
67 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
69 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
71 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
73 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
75 <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': analytic_account_id,'search_default_account_id': analytic_account_id}"/>
76 <button name="open_timesheets_to_invoice" string="Timesheets to Invoice" type="object" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
78 </tr><tr name="total">
80 <label string="Total"/>
83 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
85 <field name="invoiced_total" class="oe_inline"/>
87 <field name="remaining_total" class="oe_inline"/>
89 <field name="toinvoice_total" class="oe_inline"/>
94 <separator string="Terms and Conditions" name="description"/>
95 <field name="description"/>
101 <record id="project_invoice_form" model="ir.ui.view">
102 <field name="name">Inherit project form : Invoicing Data</field>
103 <field name="model">project.project</field>
104 <field name="inherit_id" ref="project.edit_project"/>
105 <field name="arch" type="xml">
106 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
108 <td><group><field name="use_timesheets"/></group></td>
109 <td><button icon="terp-gtk-go-back-rtl" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>
115 <record id="contract_inherited_form" model="ir.ui.view">
116 <field name="name">Inherit contract form : adding UoM</field>
117 <field name="model">account.analytic.account</field>
118 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
119 <field name="priority">50</field>
120 <field name="arch" type="xml">
121 <xpath expr='//field[@name="remaining_hours"]' position='after'>
122 <field name="company_uom_id" readonly="1" class="oe_inline"/>