2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2008-07-01 11:15:14 +00:00
|
|
|
|
|
|
|
<!--
|
2012-02-28 08:36:44 +00:00
|
|
|
Analytic Account form
|
2012-06-07 12:36:41 +00:00
|
|
|
-->
|
|
|
|
|
2012-05-29 10:39:49 +00:00
|
|
|
<act_window
|
|
|
|
id="action_sales_order_line"
|
|
|
|
name="Sales Order Lines"
|
|
|
|
res_model="sale.order.line"
|
|
|
|
src_model="account.analytic.account"
|
|
|
|
/>
|
2012-06-15 09:31:44 +00:00
|
|
|
|
2012-06-14 10:01:23 +00:00
|
|
|
<record id="account_analytic_account_form_form" model="ir.ui.view">
|
2012-02-28 08:36:44 +00:00
|
|
|
<field name="name">account.analytic.account.invoice.form.inherit</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
|
|
|
<field name="type">form</field>
|
2012-05-28 10:43:10 +00:00
|
|
|
<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
|
2012-06-15 09:38:45 +00:00
|
|
|
<field eval="40" name="priority"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-06-07 09:24:05 +00:00
|
|
|
<xpath expr='//field[@name="type"]' position='after'>
|
2012-06-12 09:30:20 +00:00
|
|
|
<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'}"/>
|
2012-06-06 15:36:29 +00:00
|
|
|
</xpath>
|
2012-06-15 08:12:54 +00:00
|
|
|
<xpath expr='//field[@name="date"]' position="after" version="7.0">
|
2012-06-15 08:44:24 +00:00
|
|
|
<label for="quantity_max"/>
|
|
|
|
<div>
|
|
|
|
<field name="quantity_max" class="oe_form_inline"/> / Remaining:
|
|
|
|
<field name="remaining_hours" class="oe_form_inline"/>
|
|
|
|
</div>
|
2012-05-28 12:30:54 +00:00
|
|
|
</xpath>
|
2012-06-15 09:38:45 +00:00
|
|
|
<xpath expr='//field[@name="pricelist_id"]' position='replace'>
|
|
|
|
<field name="pricelist_id" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr='//field[@name="to_invoice"]' position='replace'>
|
|
|
|
<field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
|
|
|
</xpath>
|
2012-06-15 08:44:24 +00:00
|
|
|
<xpath expr='//group[@name="master"]' position='after'>
|
2012-06-15 08:49:44 +00:00
|
|
|
<separator name="toinvoice" string="Invoicing"/>
|
2012-06-15 09:07:38 +00:00
|
|
|
<table width="100%%">
|
2012-06-15 08:44:24 +00:00
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th><label string="Est.Tot"/></th>
|
|
|
|
<th><label string="Invoiced"/></th>
|
|
|
|
<th><label string="Remaining"/></th>
|
|
|
|
<th><label string="To Invoice"/></th>
|
|
|
|
<th></th>
|
|
|
|
</tr><tr>
|
|
|
|
<td>
|
|
|
|
<label for="fix_price_invoices"/>
|
|
|
|
</td><td>
|
2012-06-15 09:07:38 +00:00
|
|
|
<field name="fix_price_invoices" class="oe_form_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="ca_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<button name="%(action_sales_order_line)d" string="Sales" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
|
|
|
<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>
|
|
|
|
</tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
|
2012-06-15 08:44:24 +00:00
|
|
|
<td>
|
|
|
|
<label for="invoice_on_timesheets"/>
|
|
|
|
</td><td>
|
2012-06-15 08:49:44 +00:00
|
|
|
<field name="invoice_on_timesheets"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="hours_qtt_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<field class="oe_form_inline" name="hours_qtt_non_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:31:44 +00:00
|
|
|
<button name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
|
|
|
<button name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d" string="Invoice Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td>
|
|
|
|
</tr><tr>
|
2012-06-15 09:07:38 +00:00
|
|
|
<th>
|
2012-06-15 08:44:24 +00:00
|
|
|
<label string="Total"/>
|
2012-06-15 09:07:38 +00:00
|
|
|
</th><td>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:07:38 +00:00
|
|
|
<field name="est_total" class="oe_form_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:07:38 +00:00
|
|
|
<field name="invoiced_total" class="oe_form_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:07:38 +00:00
|
|
|
<field name="remaining_total" class="oe_form_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-15 09:07:38 +00:00
|
|
|
<field name="toinvoice_total" class="oe_form_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2012-06-14 10:07:53 +00:00
|
|
|
</xpath>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 11:15:14 +00:00
|
|
|
|
|
|
|
<!-- Add information on Account analytic list for the project management -->
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_account_analytic_account_tree_c2c_2" model="ir.ui.view">
|
2008-06-29 08:26:07 +00:00
|
|
|
<field name="name">account.analytic.account.tree</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="inherit_id" ref="account.view_account_analytic_account_list"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="quantity" position="replace">
|
|
|
|
<field name="hours_quantity"/>
|
|
|
|
<field name="hours_qtt_non_invoiced"/>
|
|
|
|
<field name="remaining_hours"/>
|
2012-01-09 17:48:36 +00:00
|
|
|
<field name="quantity_max"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-02-28 08:36:44 +00:00
|
|
|
|
|
|
|
<record id="view_account_analytic_account_tree_c2c_3" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.account.tree</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="inherit_id" ref="account.view_account_analytic_account_list"/>
|
2012-02-28 08:36:44 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="date" position="before">
|
2008-06-29 08:26:07 +00:00
|
|
|
<field name="last_invoice_date"/>
|
|
|
|
<field name="ca_to_invoice"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-05-28 09:19:10 +00:00
|
|
|
|
|
|
|
<record id="template_of_contract_action" model="ir.actions.act_window">
|
2012-06-07 07:39:28 +00:00
|
|
|
<field name="name">Template of Contract</field>
|
2012-05-28 09:19:10 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">account.analytic.account</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[('type','=','template')]</field>
|
|
|
|
<field name="context">{'search_default_type':'template','default_type' : 'template'}</field>
|
|
|
|
</record>
|
|
|
|
<menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config" />
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|