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="Invoiceable" domain="[('to_invoice','!=', False)]" help="Invoiceable 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="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="Project"/>
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="Project"/>
79 <record id="view_account_analytic_line_filter_inherit_buttons" model="ir.ui.view">
80 <field name="name">account.analytic.line.inherit.select</field>
81 <field name="model">account.analytic.line</field>
82 <field name="type">search</field>
83 <field name="priority">10</field>
84 <field name="arch" type="xml">
85 <search string="Search Analytic Lines">
86 <group col='6' colspan='4'>
89 <field name="account_id"/>
90 <field name="user_id">
91 <filter string="My Entries" domain="[('user_id','=',uid)]" icon="terp-personal"/>
95 <group expand="0" string="Extended Filters...">
96 <field name="journal_id" widget="selection"/>
97 <field name="product_id" widget="selection"/>
98 <field name="amount" select="1"/>
101 <group string="Group By..." expand="0">
102 <filter string="Account" context="{'group_by':'account_id'}" groups="base.group_extended" icon="terp-folder-green"/>
103 <filter string="Journal" context="{'group_by':'journal_id'}" icon="terp-folder-orange"/>
104 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
105 <separator orientation="vertical"/>
106 <filter string="Fin.Account" context="{'group_by':'general_account_id'}" icon="terp-folder-green"/>
107 <separator orientation="vertical"/>
108 <filter string="Product" context="{'group_by':'product_id'}" icon="terp-accessories-archiver"/>
115 <record id="action_project_timesheet_bill_task" model="ir.actions.act_window">
116 <field name="name">Bill Tasks Works</field>
117 <field name="res_model">account.analytic.line</field>
118 <field name="view_type">form</field>
119 <field name="view_mode">tree,form</field>
120 <field name="domain">[]</field>
121 <field name="context">{'search_default_to_invoice': 1}</field>
122 <field name="view_id" ref="view_account_analytic_line_tree_inherit_account_id"/>
123 <field name="search_view_id" ref="view_account_analytic_line_filter_inherit_buttons"/>
124 <field name="help">This lists show you every task work you can invoice to the customer. Select the lines in order to generate the invoices automatically.</field>
127 <menuitem id="menu_project_billing" name="Invoicing"
128 parent="base.menu_main_pm" sequence="5"/>
129 <menuitem id="menu_project_billing_line" name="Invoice Tasks Work"
130 parent="menu_project_billing" action="action_project_timesheet_bill_task"/>
131 <menuitem id="base.menu_project_management_time_tracking" name="Time Tracking"
132 parent="base.menu_main_pm" sequence="5"/>