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
|
2012-06-15 10:24:54 +00:00
|
|
|
id="action_sales_order"
|
2012-06-15 13:36:39 +00:00
|
|
|
name="Sales Orders"
|
2012-06-15 10:24:54 +00:00
|
|
|
res_model="sale.order"
|
2012-05-29 10:39:49 +00:00
|
|
|
src_model="account.analytic.account"
|
2012-06-15 13:36:39 +00:00
|
|
|
/>
|
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>
|
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-22 09:10:08 +00:00
|
|
|
<xpath expr='//div[@name="duration"]' position="after" version="7.0">
|
2012-06-15 08:44:24 +00:00
|
|
|
<label for="quantity_max"/>
|
|
|
|
<div>
|
2012-08-29 19:08:31 +00:00
|
|
|
<field name="quantity_max" class="oe_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</div>
|
2012-05-28 12:30:54 +00:00
|
|
|
</xpath>
|
2012-06-25 15:55:40 +00:00
|
|
|
<xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
|
2012-06-19 12:21:28 +00:00
|
|
|
</xpath>
|
2012-08-29 19:08:31 +00:00
|
|
|
<xpath expr='//separator[@name="description"]' position='before'>
|
2012-06-15 08:49:44 +00:00
|
|
|
<separator name="toinvoice" string="Invoicing"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
<table class="oe_form_analytic_account">
|
2012-06-15 08:44:24 +00:00
|
|
|
<tr>
|
2012-08-29 19:08:31 +00:00
|
|
|
<th class="oe_grey" width="160px"></th>
|
|
|
|
<th class="oe_grey" width="25px"></th>
|
|
|
|
<th class="oe_grey" width="100px"><label string="Expected"/></th>
|
|
|
|
<th class="oe_grey" width="100px"><label string="Invoiced"/></th>
|
|
|
|
<th class="oe_grey" width="100px"><label string="Remaining"/></th>
|
|
|
|
<th class="oe_grey" width="100px"><label string="To Invoice"/></th>
|
|
|
|
<th width="30px"></th>
|
2012-06-15 08:44:24 +00:00
|
|
|
<th></th>
|
|
|
|
</tr><tr>
|
2012-08-29 19:08:31 +00:00
|
|
|
<td class="oe_grey">
|
2012-06-15 08:44:24 +00:00
|
|
|
<label for="fix_price_invoices"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
</td><td class="oe_grey">
|
2012-06-26 11:02:35 +00:00
|
|
|
<field name="fix_price_invoices" class="oe_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-08-29 19:08:31 +00:00
|
|
|
<button name="open_sale_order_lines"
|
|
|
|
class="oe_link oe_e"
|
|
|
|
string="/" 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_to_invoice','=',0)]}"/>
|
|
|
|
</td><td>
|
|
|
|
<button name="%(action_sales_order)d" string="Sale Orders"
|
|
|
|
type="action"
|
|
|
|
class="oe_link"
|
|
|
|
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)]}"/>
|
2012-06-26 11:02:35 +00:00
|
|
|
</td>
|
2012-08-29 19:08:31 +00:00
|
|
|
</tr><tr>
|
|
|
|
<td class="oe_grey">
|
2012-06-15 08:44:24 +00:00
|
|
|
<label for="invoice_on_timesheets"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
</td><td class="oe_grey">
|
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-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-06-26 11:02:35 +00:00
|
|
|
<field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
2012-08-29 19:08:31 +00:00
|
|
|
<button name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d"
|
|
|
|
type="action"
|
|
|
|
class="oe_link oe_e"
|
|
|
|
string="/"
|
|
|
|
attrs="{'invisible': [('ca_to_invoice','=',0.0)]}"/>
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
<button name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d"
|
|
|
|
string="Timesheets" type="action"
|
|
|
|
class="oe_link"
|
|
|
|
attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"
|
|
|
|
context="{'default_account_id': active_id,'search_default_account_id': active_id}"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td>
|
2012-06-18 12:29:30 +00:00
|
|
|
</tr><tr name='total'>
|
2012-08-29 19:08:31 +00:00
|
|
|
<th class="oe_grey">
|
2012-06-15 08:44:24 +00:00
|
|
|
<label string="Total"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
</th><td class="oe_grey">
|
|
|
|
</td><td class="oe_grey">
|
2012-06-26 11:02:35 +00:00
|
|
|
<field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
</td><td class="oe_grey">
|
2012-06-26 11:02:35 +00:00
|
|
|
<field name="invoiced_total" class="oe_inline"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
</td><td class="oe_grey">
|
2012-06-26 11:02:35 +00:00
|
|
|
<field name="remaining_total" class="oe_inline"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
</td><td class="oe_grey">
|
2012-06-26 11:02:35 +00:00
|
|
|
<field name="toinvoice_total" class="oe_inline"/>
|
2012-06-15 08:44:24 +00:00
|
|
|
</td><td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2012-08-29 19:08:31 +00:00
|
|
|
<group name='invoice_on_timesheets' attrs="{'invisible': [('invoice_on_timesheets','=',False)]}">
|
|
|
|
<field name="pricelist_id"
|
|
|
|
class="oe_inline"
|
|
|
|
attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
|
|
|
|
<field name="to_invoice"
|
|
|
|
class="oe_inline"
|
|
|
|
widget="selection"
|
|
|
|
attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
|
|
|
|
</group>
|
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
|
|
|
|
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="arch" type="xml">
|
|
|
|
<field name="date" position="before">
|
2008-06-29 08:26:07 +00:00
|
|
|
<field name="last_invoice_date"/>
|
2012-06-19 12:21:28 +00:00
|
|
|
<field name="toinvoice_total"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-06-19 12:21:28 +00:00
|
|
|
|
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>
|
2012-06-15 13:10:56 +00:00
|
|
|
<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>
|