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 <field name="warn_customer" position="after">
11 <group colspan="4" col="4">
12 <separator colspan="4" string="Invoicing Data"/>
13 <field name="pricelist_id" domain="[('type','=','sale')]" widget="selection"/>
14 <field name="to_invoice" widget="selection" string="Invoice Task Work"/>
15 <field name="amount_max" groups="base.group_extended"/>
16 <field name="amount_invoiced" groups="base.group_extended"/>
22 <record id="project_invoice_form_cutomer" model="ir.ui.view">
23 <field name="name">Inherit project form : Customer</field>
24 <field name="model">project.project</field>
25 <field name="type">form</field>
26 <field name="inherit_id" ref="project_invoice_form"/>
27 <field name="arch" type="xml">
28 <field name="partner_id" position="replace">
29 <field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id)" select="1" string="Customer" attrs="{'required':[('to_invoice','!=',False)]}"/>
34 <record id="project_invoice_search" model="ir.ui.view">
35 <field name="name">Inherit project search view : Invoicing Data</field>
36 <field name="model">project.project</field>
37 <field name="type">search</field>
38 <field name="inherit_id" ref="project.view_project_project_filter"/>
39 <field name="arch" type="xml">
40 <xpath expr='//filter[@string="Member"]' position='after'>
41 <separator orientation="vertical"/>
42 <filter icon="terp-camera_test" string="Billable" domain="[('to_invoice','!=', False)]" help="Billable Project"/>
46 <record id="view_account_analytic_line_search_account_inherit" model="ir.ui.view">
47 <field name="name">account.analytic.line.search.account_id</field>
48 <field name="model">account.analytic.line</field>
49 <field name="type">search</field>
50 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
51 <field name="arch" type="xml">
52 <field name="account_id" position="replace">
53 <field name="account_id" string="Analytic account/project" />
57 <record id="view_account_analytic_line_form_inherit_account_id" model="ir.ui.view">
58 <field name="name">account.analytic.line.form.account_id</field>
59 <field name="model">account.analytic.line</field>
60 <field name="type">form</field>
61 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
62 <field name="arch" type="xml">
63 <field name="account_id" position="replace">
64 <field name="account_id" string="Analytic account/project" on_change="on_change_account_id(account_id)"/>
68 <record id="view_account_analytic_line_tree_inherit_account_id" model="ir.ui.view">
69 <field name="name">account.analytic.line.tree.account_id</field>
70 <field name="model">account.analytic.line</field>
71 <field name="type">tree</field>
72 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
73 <field name="arch" type="xml">
74 <field name="account_id" position="replace">
75 <field name="account_id" string="Analytic account/project"/>
81 <record id="action_project_timesheet_bill_task" model="ir.actions.act_window">
82 <field name="name">Bill Tasks Works</field>
83 <field name="res_model">account.analytic.line</field>
84 <field name="view_type">form</field>
85 <field name="view_mode">tree,form</field>
86 <field name="domain">[]</field>
87 <field name="context">{'search_default_to_invoice': 1}</field>
88 <field name="view_id" ref="view_account_analytic_line_tree_inherit_account_id"/>
89 <field name="help">You will find here all works made on tasks that you can invoice.
90 In order to invoice the time spent on a project, you must define the
91 pricelist and the field 'Invoice Task Work' on the tab 'Billing' of
92 the project form.</field>
94 <menuitem action="hr_timesheet.action_hr_timesheet_sign_in"
95 id="menu_hr_timesheet_sign_in"
96 groups="base.group_extended"
97 parent="hr_attendance.menu_hr_attendance"
100 <menuitem id="menu_project_billing" name="Invoicing"
101 parent="base.menu_main_pm" sequence="5"/>
102 <menuitem id="menu_project_billing_line" name="Invoice Tasks Work"
103 parent="menu_project_billing" action="action_project_timesheet_bill_task"/>
106 Time Tracking menu in project Management
108 <menuitem id="menu_project_working_hours" parent="base.menu_project_management_time_tracking" action="hr_timesheet.act_hr_timesheet_line_evry1_all_form"/>
110 <record id="action_account_analytic_overdue" model="ir.actions.act_window">
111 <field name="name">Customer Projects</field>
112 <field name="res_model">account.analytic.account</field>
113 <field name="view_type">form</field>
114 <field name="view_mode">tree,form,graph</field>
115 <field name="context">{'search_default_has_partner':1, 'search_default_my_accounts':1, 'search_default_draft':1, 'search_default_pending':1, 'search_default_open':1}</field>
116 <field name="domain">[('type','=','normal')]</field>
117 <field name="search_view_id" ref="account_analytic_analysis.view_account_analytic_account_overdue_search"/>
118 <field name="help">You will find here the contracts related to your customer projects in order to track the invoicing progress.</field>
120 <menuitem id="menu_invoicing_contracts" parent="menu_project_billing" sequence="4"
121 action="account_analytic_analysis.action_account_analytic_overdue"/>