2010-09-27 13:47:19 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="project_invoice_form" model="ir.ui.view">
|
|
|
|
<field name="name">Inherit project form : Invoicing Data</field>
|
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="project.edit_project"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-05-07 07:20:49 +00:00
|
|
|
<xpath expr="//field[@name='use_tasks']" position='after'>
|
|
|
|
<field name="use_timesheets"/>
|
2012-04-10 12:44:14 +00:00
|
|
|
<field name="amt_to_invoice" invisible="True"/>
|
|
|
|
<field name="hrs_to_invoice" invisible="True"/>
|
2012-03-27 07:09:40 +00:00
|
|
|
</xpath>
|
|
|
|
|
2010-09-27 13:47:19 +00:00
|
|
|
<field name="warn_customer" position="after">
|
|
|
|
<group colspan="4" col="4">
|
|
|
|
<separator colspan="4" string="Invoicing Data"/>
|
2012-03-21 10:01:44 +00:00
|
|
|
<field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]" widget="selection"/>
|
2011-01-28 07:23:17 +00:00
|
|
|
<field name="to_invoice" widget="selection" string="Invoice Task Work"/>
|
2012-04-25 14:02:12 +00:00
|
|
|
<field name="amount_max"/>
|
|
|
|
<field name="amount_invoiced"/>
|
2010-09-27 13:47:19 +00:00
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-03-28 07:33:49 +00:00
|
|
|
<record id="view_project_kanban_inherited" model="ir.ui.view">
|
|
|
|
<field name="name">project.project.kanban.inherited</field>
|
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="type">kanban</field>
|
|
|
|
<field name="inherit_id" ref="project.view_project_kanban"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-05-07 07:20:49 +00:00
|
|
|
<field name="use_tasks" position="after">
|
|
|
|
<field name="use_timesheets" context="{'search_default_account_id': project_id, 'default_account_id': project_id}"/>
|
|
|
|
<field name="timesheet_count"/>
|
2012-03-30 13:12:52 +00:00
|
|
|
<field name="currency_id"/>
|
2012-03-28 07:33:49 +00:00
|
|
|
</field>
|
2012-04-11 09:36:52 +00:00
|
|
|
<xpath expr="//div[@id='list']" position="inside">
|
2012-05-07 07:20:49 +00:00
|
|
|
<t t-if="record.use_timesheets.raw_value">
|
|
|
|
<a id="3" name="open_timesheets" class="oe_project_buttons" type="object"><t t-if="record.timesheet_count.value <= 1">Timesheet</t><t t-if="record.timesheet_count.value > 1">Timesheets</t>(<t t-esc="record.timesheet_count.value"/>)</a>
|
2012-04-27 06:27:25 +00:00
|
|
|
</t>
|
2012-04-09 09:31:32 +00:00
|
|
|
</xpath>
|
2012-04-04 06:53:19 +00:00
|
|
|
|
2012-04-04 07:08:09 +00:00
|
|
|
<xpath expr="//tr[@id='deadline']" position="before">
|
2012-04-04 06:09:33 +00:00
|
|
|
<tr >
|
2012-04-30 10:49:34 +00:00
|
|
|
<th align="left">Amount to invoice</th>
|
2012-04-04 06:09:33 +00:00
|
|
|
<td align="left">
|
2012-04-02 13:30:48 +00:00
|
|
|
<field name="amt_to_invoice"/> <t t-esc="record.currency_id.raw_value[1].split(' ')[1][1]"/>
|
2012-04-04 06:09:33 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-04-30 10:49:34 +00:00
|
|
|
<th align="left">Hours to Invoice</th>
|
2012-04-03 13:08:52 +00:00
|
|
|
<td align="left">
|
2012-04-02 13:30:48 +00:00
|
|
|
<field name="hrs_to_invoice"/> h
|
|
|
|
</td>
|
2012-04-04 06:09:33 +00:00
|
|
|
</tr>
|
2012-03-29 13:33:04 +00:00
|
|
|
</xpath>
|
2012-03-28 07:33:49 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-12-29 13:18:49 +00:00
|
|
|
<record id="project_invoice_form_cutomer" model="ir.ui.view">
|
2010-12-09 12:06:15 +00:00
|
|
|
<field name="name">Inherit project form : Customer</field>
|
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="project_invoice_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="partner_id" position="replace">
|
|
|
|
<field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id)" select="1" string="Customer" attrs="{'required':[('to_invoice','!=',False)]}"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-09-27 13:47:19 +00:00
|
|
|
<record id="project_invoice_search" model="ir.ui.view">
|
|
|
|
<field name="name">Inherit project search view : Invoicing Data</field>
|
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="inherit_id" ref="project.view_project_project_filter"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr='//filter[@string="Member"]' position='after'>
|
|
|
|
<separator orientation="vertical"/>
|
2011-09-19 12:09:16 +00:00
|
|
|
<filter icon="terp-camera_test" string="Billable" domain="[('to_invoice','!=', False)]" help="Billable Project"/>
|
2010-09-27 13:47:19 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-11-19 12:09:31 +00:00
|
|
|
<record id="view_account_analytic_line_search_account_inherit" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.line.search.account_id</field>
|
|
|
|
<field name="model">account.analytic.line</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="account_id" position="replace">
|
2011-01-03 11:08:32 +00:00
|
|
|
<field name="account_id" string="Analytic account/project" />
|
2010-11-19 12:09:31 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
2010-12-29 13:18:49 +00:00
|
|
|
</record>
|
2010-11-19 12:09:31 +00:00
|
|
|
<record id="view_account_analytic_line_form_inherit_account_id" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.line.form.account_id</field>
|
|
|
|
<field name="model">account.analytic.line</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_analytic_line_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="account_id" position="replace">
|
2011-01-04 07:20:18 +00:00
|
|
|
<field name="account_id" string="Analytic account/project" on_change="on_change_account_id(account_id)"/>
|
2010-11-19 12:09:31 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_account_analytic_line_tree_inherit_account_id" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.line.tree.account_id</field>
|
|
|
|
<field name="model">account.analytic.line</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="account_id" position="replace">
|
2011-01-03 11:08:32 +00:00
|
|
|
<field name="account_id" string="Analytic account/project"/>
|
2010-11-19 12:09:31 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-12-09 11:52:11 +00:00
|
|
|
|
2010-12-29 13:18:49 +00:00
|
|
|
<!-- Menus -->
|
2010-12-09 11:52:11 +00:00
|
|
|
<record id="action_project_timesheet_bill_task" model="ir.actions.act_window">
|
|
|
|
<field name="name">Bill Tasks Works</field>
|
|
|
|
<field name="res_model">account.analytic.line</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[]</field>
|
2012-02-23 07:50:12 +00:00
|
|
|
<field name="context">{}</field>
|
2010-12-29 13:18:49 +00:00
|
|
|
<field name="view_id" ref="view_account_analytic_line_tree_inherit_account_id"/>
|
2011-07-22 13:19:48 +00:00
|
|
|
<field name="help">You will find here all works made on tasks that you can invoice.
|
|
|
|
In order to invoice the time spent on a project, you must define the
|
|
|
|
pricelist and the field 'Invoice Task Work' on the tab 'Billing' of
|
|
|
|
the project form.</field>
|
2010-12-09 11:52:11 +00:00
|
|
|
</record>
|
2010-12-29 13:18:49 +00:00
|
|
|
<menuitem action="hr_timesheet.action_hr_timesheet_sign_in"
|
2010-12-22 04:53:53 +00:00
|
|
|
id="menu_hr_timesheet_sign_in"
|
|
|
|
parent="hr_attendance.menu_hr_attendance"
|
|
|
|
sequence="5" />
|
2010-12-09 11:52:11 +00:00
|
|
|
|
2010-10-17 16:42:26 +00:00
|
|
|
<menuitem id="menu_project_billing" name="Invoicing"
|
2010-10-04 22:56:29 +00:00
|
|
|
parent="base.menu_main_pm" sequence="5"/>
|
2010-10-17 16:42:26 +00:00
|
|
|
<menuitem id="menu_project_billing_line" name="Invoice Tasks Work"
|
2010-12-09 11:52:11 +00:00
|
|
|
parent="menu_project_billing" action="action_project_timesheet_bill_task"/>
|
2012-02-27 11:05:35 +00:00
|
|
|
|
2010-12-22 08:44:44 +00:00
|
|
|
<!--
|
|
|
|
Time Tracking menu in project Management
|
|
|
|
-->
|
2012-02-27 11:05:35 +00:00
|
|
|
<!-- <menuitem id="menu_project_working_hours" parent="base.menu_project_management_time_tracking" action="hr_timesheet.act_hr_timesheet_line_evry1_all_form"/> -->
|
2011-11-16 14:59:58 +00:00
|
|
|
|
2011-12-01 13:48:31 +00:00
|
|
|
<record id="action_account_analytic_overdue" model="ir.actions.act_window">
|
|
|
|
<field name="name">Customer Projects</field>
|
|
|
|
<field name="res_model">account.analytic.account</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form,graph</field>
|
2012-02-23 07:50:12 +00:00
|
|
|
<field name="context">{}</field>
|
2011-12-01 13:48:31 +00:00
|
|
|
<field name="domain">[('type','=','normal')]</field>
|
2011-12-01 14:05:21 +00:00
|
|
|
<field name="search_view_id" ref="account_analytic_analysis.view_account_analytic_account_overdue_search"/>
|
2011-12-01 13:48:31 +00:00
|
|
|
<field name="help">You will find here the contracts related to your customer projects in order to track the invoicing progress.</field>
|
|
|
|
</record>
|
2011-12-08 15:26:58 +00:00
|
|
|
<menuitem id="menu_invoicing_contracts" parent="menu_project_billing" sequence="4"
|
2011-12-01 13:48:31 +00:00
|
|
|
action="account_analytic_analysis.action_account_analytic_overdue"/>
|
|
|
|
|
2010-09-27 13:47:19 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|