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="type">form</field>
9 <field name="inherit_id" ref="project.edit_project"/>
10 <field eval="18" name="priority"/>
11 <field name="arch" type="xml">
12 <xpath expr='//page[@name="team"]' position='after'>
13 <page string="Contract Data">
15 <group string="Validity">
16 <label for="date_start" string="Duration"/>
18 <field name="date_start" class="oe_inline"/>
19 <label attrs="{'invisible':[('date','=',False)]}" class="oe_inline" string=" - "/>
20 <field name="date" class="oe_inline"/>
22 <label for="quantity_max"/>
24 <field name="quantity_max" class="oe_inline"/>
25 <field name="company_uom_id" readonly="1" class="oe_inline"/> / Remaining:
26 <field name="remaining_hours" class="oe_inline"/>
27 <field name="company_uom_id" readonly="1" class="oe_inline"/>
30 <group string="Invoice Options">
31 <field name="manager_id" />
32 <field name="pricelist_id" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
33 <field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
36 <separator name="toinvoice" string="Invoicing"/>
41 <th><label string="Est.Tot"/></th>
42 <th><label string="Invoiced"/></th>
43 <th><label string="Remaining"/></th>
44 <th><label string="To Invoice"/></th>
48 <label for="fix_price_invoices"/>
50 <field name="fix_price_invoices" class="oe_inline"/>
52 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
54 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
56 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
58 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
60 <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)]}"/>
61 <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>
62 </tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
64 <label for="invoice_on_timesheets"/>
66 <field name="invoice_on_timesheets"/>
68 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
70 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
72 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
74 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
76 <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}"/>
77 <button name="open_timesheets_to_invoice" string="Timesheets to Invoice" type="object" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
79 </tr><tr name="total">
81 <label string="Total"/>
84 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
86 <field name="invoiced_total" class="oe_inline"/>
88 <field name="remaining_total" class="oe_inline"/>
90 <field name="toinvoice_total" class="oe_inline"/>
95 <separator string="Terms and Conditions" name="description"/>
96 <field name="description"/>
102 <record id="project_invoice_form" model="ir.ui.view">
103 <field name="name">Inherit project form : Invoicing Data</field>
104 <field name="model">project.project</field>
105 <field name="type">form</field>
106 <field name="inherit_id" ref="project.edit_project"/>
107 <field name="arch" type="xml">
108 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
110 <td><group><field name="use_timesheets"/></group></td>
111 <td><button icon="terp-gtk-go-back-rtl" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>
117 <record id="contract_inherited_form" model="ir.ui.view">
118 <field name="name">Inherit contract form : adding UoM</field>
119 <field name="model">account.analytic.account</field>
120 <field name="type">form</field>
121 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
122 <field name="priority">50</field>
123 <field name="arch" type="xml">
124 <xpath expr='//field[@name="remaining_hours"]' position='after'>
125 <field name="company_uom_id" readonly="1" class="oe_inline"/>