1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="project_invoice_form" model="ir.ui.view">
5 <field name="name">Inherit project form : Invoicing Data</field>
6 <field name="model">project.project</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="project.edit_project"/>
9 <field name="arch" type="xml">
10 <xpath expr="//field[@name='task']" position='after'>
11 <field name="timesheets"/>
12 <field name="amt_to_invoice" invisible="True"/>
13 <field name="hrs_to_invoice" invisible="True"/>
16 <field name="warn_customer" position="after">
17 <group colspan="4" col="4">
18 <separator colspan="4" string="Invoicing Data"/>
19 <field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]" widget="selection"/>
20 <field name="to_invoice" widget="selection" string="Invoice Task Work"/>
21 <field name="amount_max" groups="base.group_extended"/>
22 <field name="amount_invoiced" groups="base.group_extended"/>
28 <record id="view_project_kanban_inherited" model="ir.ui.view">
29 <field name="name">project.project.kanban.inherited</field>
30 <field name="model">project.project</field>
31 <field name="type">kanban</field>
32 <field name="inherit_id" ref="project.view_project_kanban"/>
33 <field name="arch" type="xml">
34 <field name="task" position="after">
35 <field name="timesheets"/>
36 <field name="total_timesheet"/>
37 <field name="currency_id"/>
39 <xpath expr="//div[@id='list']" position="inside">
41 <t t-if="record.timesheets.raw_value">
42 <button name="open_timesheets" class="oe_project_buttons" type="object"><div class="fontsize"><t t-if="record.total_timesheet.value <= 1"> Timesheet</t><t t-if="record.total_timesheet.value > 1"> Timesheets</t>(<t t-esc="record.total_timesheet.value"/>)</div></button>
47 <xpath expr="//tr[@id='deadline']" position="before">
49 <th align="left">To invoice</th>
51 <field name="amt_to_invoice"/> <t t-esc="record.currency_id.raw_value[1].split(' ')[1][1]"/>
55 <th align="left">To hours</th>
57 <field name="hrs_to_invoice"/> h
64 <record id="project_invoice_form_cutomer" model="ir.ui.view">
65 <field name="name">Inherit project form : Customer</field>
66 <field name="model">project.project</field>
67 <field name="type">form</field>
68 <field name="inherit_id" ref="project_invoice_form"/>
69 <field name="arch" type="xml">
70 <field name="partner_id" position="replace">
71 <field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id)" select="1" string="Customer" attrs="{'required':[('to_invoice','!=',False)]}"/>
76 <record id="project_invoice_search" model="ir.ui.view">
77 <field name="name">Inherit project search view : Invoicing Data</field>
78 <field name="model">project.project</field>
79 <field name="type">search</field>
80 <field name="inherit_id" ref="project.view_project_project_filter"/>
81 <field name="arch" type="xml">
82 <xpath expr='//filter[@string="Member"]' position='after'>
83 <separator orientation="vertical"/>
84 <filter icon="terp-camera_test" string="Billable" domain="[('to_invoice','!=', False)]" help="Billable Project"/>
88 <record id="view_account_analytic_line_search_account_inherit" model="ir.ui.view">
89 <field name="name">account.analytic.line.search.account_id</field>
90 <field name="model">account.analytic.line</field>
91 <field name="type">search</field>
92 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
93 <field name="arch" type="xml">
94 <field name="account_id" position="replace">
95 <field name="account_id" string="Analytic account/project" />
99 <record id="view_account_analytic_line_form_inherit_account_id" model="ir.ui.view">
100 <field name="name">account.analytic.line.form.account_id</field>
101 <field name="model">account.analytic.line</field>
102 <field name="type">form</field>
103 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
104 <field name="arch" type="xml">
105 <field name="account_id" position="replace">
106 <field name="account_id" string="Analytic account/project" on_change="on_change_account_id(account_id)"/>
110 <record id="view_account_analytic_line_tree_inherit_account_id" model="ir.ui.view">
111 <field name="name">account.analytic.line.tree.account_id</field>
112 <field name="model">account.analytic.line</field>
113 <field name="type">tree</field>
114 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
115 <field name="arch" type="xml">
116 <field name="account_id" position="replace">
117 <field name="account_id" string="Analytic account/project"/>
123 <record id="action_project_timesheet_bill_task" model="ir.actions.act_window">
124 <field name="name">Bill Tasks Works</field>
125 <field name="res_model">account.analytic.line</field>
126 <field name="view_type">form</field>
127 <field name="view_mode">tree,form</field>
128 <field name="domain">[]</field>
129 <field name="context">{}</field>
130 <field name="view_id" ref="view_account_analytic_line_tree_inherit_account_id"/>
131 <field name="help">You will find here all works made on tasks that you can invoice.
132 In order to invoice the time spent on a project, you must define the
133 pricelist and the field 'Invoice Task Work' on the tab 'Billing' of
134 the project form.</field>
136 <menuitem action="hr_timesheet.action_hr_timesheet_sign_in"
137 id="menu_hr_timesheet_sign_in"
138 groups="base.group_extended"
139 parent="hr_attendance.menu_hr_attendance"
142 <menuitem id="menu_project_billing" name="Invoicing"
143 parent="base.menu_main_pm" sequence="5"/>
144 <menuitem id="menu_project_billing_line" name="Invoice Tasks Work"
145 parent="menu_project_billing" action="action_project_timesheet_bill_task"/>
148 Time Tracking menu in project Management
150 <!-- <menuitem id="menu_project_working_hours" parent="base.menu_project_management_time_tracking" action="hr_timesheet.act_hr_timesheet_line_evry1_all_form"/> -->
152 <record id="action_account_analytic_overdue" model="ir.actions.act_window">
153 <field name="name">Customer Projects</field>
154 <field name="res_model">account.analytic.account</field>
155 <field name="view_type">form</field>
156 <field name="view_mode">tree,form,graph</field>
157 <field name="context">{}</field>
158 <field name="domain">[('type','=','normal')]</field>
159 <field name="search_view_id" ref="account_analytic_analysis.view_account_analytic_account_overdue_search"/>
160 <field name="help">You will find here the contracts related to your customer projects in order to track the invoicing progress.</field>
162 <menuitem id="menu_invoicing_contracts" parent="menu_project_billing" sequence="4"
163 action="account_analytic_analysis.action_account_analytic_overdue"/>