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
|
2008-07-01 11:15:14 +00:00
|
|
|
|
|
|
|
Remove information on Account data => because they move on analysis sheet
|
|
|
|
create a page with invoicing informations
|
2012-05-28 12:30:54 +00:00
|
|
|
|
2011-11-16 14:59:58 +00:00
|
|
|
<record id="account_analytic_account_invoice_stat_form" model="ir.ui.view">
|
2012-02-28 08:36:44 +00:00
|
|
|
<field name="name">account.analytic.account.invoice.stat.form.inherit</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
|
|
|
<field name="type">form</field>
|
2011-11-16 14:59:58 +00:00
|
|
|
<field name="inherit_id" ref="hr_timesheet_invoice.account_analytic_account_form_form"/>
|
|
|
|
<field eval="18" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<group name="invoice_stats" position="inside">
|
2011-12-18 19:36:38 +00:00
|
|
|
<field name="hours_qtt_non_invoiced" attrs="{'invisible': [('to_invoice','=',0)]}"/>
|
|
|
|
<field name="ca_to_invoice" attrs="{'invisible': [('to_invoice','=',0)]}"/>
|
2011-11-16 14:59:58 +00:00
|
|
|
<label string="" colspan="1"/>
|
|
|
|
<button
|
|
|
|
name="%(hr_timesheet_invoice.action_hr_timesheet_invoice_create_final)d"
|
|
|
|
string="Create Invoice"
|
|
|
|
type="action"
|
2011-12-18 19:36:38 +00:00
|
|
|
attrs="{'readonly':[('ca_to_invoice','=',0.0)], 'invisible': [('to_invoice','=',0)]}"
|
2011-11-16 14:59:58 +00:00
|
|
|
icon="gtk-go-forward"/>
|
|
|
|
</group>
|
|
|
|
</field>
|
2012-05-28 12:30:54 +00:00
|
|
|
</record> -->
|
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-05-31 07:27:58 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet.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"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field eval="18" name="priority"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-05-28 09:19:10 +00:00
|
|
|
<xpath expr='//field[@name="parent_id"]' position='after'>
|
|
|
|
<field name="template_id" on_change="on_change_template(template_id)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/>
|
|
|
|
</xpath>
|
2012-05-28 13:31:58 +00:00
|
|
|
<xpath expr='//group[@name="project"]' position="after">
|
2012-05-28 12:30:54 +00:00
|
|
|
<group col="6" colspan="3" class="oe_form_group_label_border">
|
2012-05-28 13:31:58 +00:00
|
|
|
<field name="quantity_max"/><label string="/"/> <label string="Remaining"/> <field name="remaining_hours" nolabel="1"/>
|
2012-05-28 12:30:54 +00:00
|
|
|
</group>
|
|
|
|
</xpath>
|
2012-06-06 07:06:51 +00:00
|
|
|
<xpath expr='//group[@name="toinvoice"]' position='before'>
|
2012-05-29 10:44:51 +00:00
|
|
|
<separator colspan="4" string="Invoicing" name="invoicing"/>
|
2012-05-30 11:31:22 +00:00
|
|
|
<group col="1" colspan="4">
|
2012-05-30 12:45:35 +00:00
|
|
|
<table border="0">
|
2012-05-30 11:31:22 +00:00
|
|
|
<tr>
|
2012-05-31 05:09:42 +00:00
|
|
|
<th class="oe_th_137px" height="20px"></th>
|
2012-05-30 12:45:35 +00:00
|
|
|
<th width="10px"></th>
|
|
|
|
<th class="oe_th_110px">Est.Tot</th>
|
|
|
|
<th class="oe_th_110px">Invoiced</th>
|
|
|
|
<th class="oe_th_110px">Remaining</th>
|
|
|
|
<th class="oe_th_110px">Ready To Invoice</th>
|
|
|
|
<th width="10px"></th>
|
|
|
|
<th class="oe_th_150px"></th>
|
|
|
|
<th class="oe_th_150px"></th>
|
2012-05-30 11:31:22 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-30 12:45:35 +00:00
|
|
|
<th class="oe_border_right">Fix Price Invoices</th>
|
2012-05-30 11:31:22 +00:00
|
|
|
<td><field name="fix_price_invoices" nolabel="1"/></td>
|
2012-05-30 12:45:35 +00:00
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="amount_max" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="ca_invoiced" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right"><field name="remaining_ca" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="ca_to_invoice" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td width="10px"></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" 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','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" 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','=',0)]}"/></td>
|
2012-05-30 11:31:22 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-06-04 09:39:05 +00:00
|
|
|
<th class="oe_border_right">Invoice On Timesheets</th>
|
2012-05-30 11:31:22 +00:00
|
|
|
<td><field name="invoice_on_timesheets" nolabel="1"/></td>
|
2012-05-30 12:45:35 +00:00
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="quantity_max" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="hours_qtt_invoiced" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right"><field name="remaining_hours" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="hours_qtt_non_invoiced" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td width="10px"></td>
|
2012-06-04 07:18:56 +00:00
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
2012-05-30 12:45:35 +00:00
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" 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','=',0)]}"/></td>
|
2012-05-30 11:31:22 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-30 12:45:35 +00:00
|
|
|
<th class="oe_border_right">Charge Expenses</th>
|
2012-05-30 11:31:22 +00:00
|
|
|
<td><field name="charge_expenses" nolabel="1"/></td>
|
2012-05-30 13:05:22 +00:00
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="expense_max" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
2012-05-30 12:45:35 +00:00
|
|
|
<td width="10px"></td>
|
2012-05-31 07:27:58 +00:00
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" name="open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
2012-05-30 11:31:22 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-30 12:45:35 +00:00
|
|
|
<th class="oe_border_right">Total</th>
|
|
|
|
<td width="10px"></td>
|
2012-05-31 07:27:58 +00:00
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_top"><field name="est_total" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_top"><field name="invoiced_total" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right oe_border_top"><field name="remaining_total" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_top"><field name="toinvoice_total" nolabel="1"/></td>
|
2012-05-30 11:31:22 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2012-05-29 10:44:51 +00:00
|
|
|
</group>
|
2012-05-29 06:57:13 +00:00
|
|
|
</xpath>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 11:15:14 +00:00
|
|
|
|
2012-05-31 09:33:23 +00:00
|
|
|
<record id="project_account_analytic_account_form" model="ir.ui.view">
|
2012-05-31 10:07:27 +00:00
|
|
|
<field name="name">project.project.form.inherit</field>
|
2012-05-31 09:33:23 +00:00
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="project.edit_project"/>
|
|
|
|
<field eval="18" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr='//page[@name="team"]' position='after'>
|
2012-06-04 09:39:05 +00:00
|
|
|
<page string="Contract Data">
|
2012-05-31 10:07:27 +00:00
|
|
|
<group colspan="2" col= "2" class="oe_form_group_label_border">
|
2012-05-31 09:33:23 +00:00
|
|
|
<separator colspan="2" string="Validity"/>
|
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date"/>
|
|
|
|
</group>
|
2012-05-31 10:07:27 +00:00
|
|
|
<group colspan="2" col= "2" class="oe_form_group_label_border">
|
2012-05-31 09:33:23 +00:00
|
|
|
<separator colspan="2" string="Invoice Rate"/>
|
2012-06-04 07:18:56 +00:00
|
|
|
<field name="pricelist_id" attrs="{'invisible': ['|',('invoice_on_timesheets','=',0),('charge_expenses','=',0)]}"/>
|
|
|
|
<field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
|
2012-05-31 10:07:27 +00:00
|
|
|
</group>
|
|
|
|
<group col="6" colspan="2" class="oe_form_group_label_border">
|
|
|
|
<field name="quantity_max"/><field name="company_uom_id" nolabel="1" readonly="1"/><field name="remaining_hours" string="/ Remaining"/>
|
|
|
|
</group>
|
|
|
|
<separator colspan="4" string="Invoicing"/>
|
|
|
|
<group col="1" colspan="4">
|
|
|
|
<table border="0">
|
|
|
|
<tr>
|
|
|
|
<th class="oe_th_137px" height="20px"></th>
|
|
|
|
<th width="10px"></th>
|
|
|
|
<th class="oe_th_110px">Est.Tot</th>
|
|
|
|
<th class="oe_th_110px">Invoiced</th>
|
|
|
|
<th class="oe_th_110px">Remaining</th>
|
|
|
|
<th class="oe_th_110px">Ready To Invoice</th>
|
|
|
|
<th width="10px"></th>
|
|
|
|
<th class="oe_th_150px"></th>
|
|
|
|
<th class="oe_th_150px"></th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="oe_border_right">Fix Price Invoices</th>
|
|
|
|
<td><field name="fix_price_invoices" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="amount_max" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="ca_invoiced" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right"><field name="remaining_ca" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="ca_to_invoice" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
|
|
|
|
<td width="10px"></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" 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','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" 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','=',0)]}"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="oe_border_right">Inv. On Timesheets</th>
|
|
|
|
<td><field name="invoice_on_timesheets" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="quantity_max" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="hours_qtt_invoiced" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right"><field name="remaining_hours" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="hours_qtt_non_invoiced" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
|
|
|
<td width="10px"></td>
|
2012-06-04 07:18:56 +00:00
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
|
2012-05-31 10:07:27 +00:00
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" 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','=',0)]}"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="oe_border_right">Charge Expenses</th>
|
|
|
|
<td><field name="charge_expenses" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="expense_max" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td width="10px"></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" name="open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_150px"><button class= "oe_btn_width" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="oe_border_right">Total</th>
|
|
|
|
<td width="10px"></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_top"><field name="est_total" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_top"><field name="invoiced_total" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_right oe_border_top"><field name="remaining_total" nolabel="1"/></td>
|
|
|
|
<td class="oe_amount_center oe_th_110px oe_border_top"><field name="toinvoice_total" nolabel="1"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</group>
|
|
|
|
<separator string="Terms and Condition" colspan="4"/>
|
|
|
|
<field colspan="4" name="description" nolabel="1"/>
|
2012-05-31 09:33:23 +00:00
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
</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-05-28 10:09:02 +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>
|