3 <menuitem id="base.menu_invoiced" name="Invoicing" parent="base.menu_base_partner" sequence="5"/>
5 <record id="action_hr_tree_invoiced_all" model="ir.actions.act_window">
6 <field name="name">Time & Materials to Invoice</field>
7 <field name="res_model">account.analytic.line</field>
8 <field name="view_type">form</field>
9 <field name="view_mode">tree,form</field>
10 <field name="domain">[('invoice_id','=',False)]</field>
11 <field name="context">{'search_default_to_invoice': 1}</field>
12 <field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
13 <field name="help" type="html">
15 You will find here timesheets and purchases you did for
16 contracts that can be reinvoiced to the customer. If you want
17 to record new activities to invoice, you should use the timesheet
22 <menuitem action="action_hr_tree_invoiced_all" id="menu_action_hr_tree_invoiced_all" parent="base.menu_invoiced" sequence="5"/>
24 <record id="view_account_analytic_account_overdue_search" model="ir.ui.view">
25 <field name="name">account.analytic.account.search</field>
26 <field name="model">account.analytic.account</field>
27 <field name="arch" type="xml">
28 <search string="Analytic Account">
29 <field name="name" filter_domain="['|', ('name','ilike',self),('code','ilike',self)]" string="Contract"/>
31 <filter icon="terp-camera_test" name="open" string="Open" domain="[('state','in',('open','draft'))]" help="Contracts in progress"/>
32 <filter icon="terp-gtk-media-pause" name="pending" string="Pending" domain="[('state','=','pending')]" help="Pending contracts to renew with your customer"/>
34 <filter icon="terp-go-today" string="To Renew" domain="['|', '&', ('date', '!=', False), ('date', '<=', time.strftime('%%Y-%%m-%%d')), ('is_overdue_quantity', '=', True)]" name="renew"
35 help="The contracts to be renewed because the deadline is passed or the working hours are higher than the allocated hours" />
37 <filter string="Contracts Having a Partner" help="A contract in OpenERP is an analytic account having a partner set on it." name="has_partner" domain="[('partner_id', '!=', False)]" icon="terp-partner" />
39 <filter string="Contracts not assigned" help="Contracts that are not assigned to an account manager." domain="[('user_id', '=', False)]" icon="terp-personal-" />
40 <field name="partner_id"/>
41 <field name="user_id"/>
42 <group expand="0" string="Group By...">
43 <filter string="Status" icon="terp-personal" domain="[]" context="{'group_by':'state'}"/>
44 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
45 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
46 <filter string="Parent" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
47 <filter string="Start Date" icon="terp-go-month" domain="[]" context="{'group_by' : 'date_start'}" />
48 <filter string="End Date" icon="terp-go-month" domain="[]" context="{'group_by' : 'date'}" />
55 <record id="action_account_analytic_overdue" model="ir.actions.act_window">
56 <field name="name">Contracts to Renew</field>
57 <field name="res_model">account.analytic.account</field>
58 <field name="view_type">form</field>
59 <field name="view_mode">tree,form</field>
60 <field name="context">{'search_default_user_id':uid, 'search_default_draft':1, 'search_default_pending':1, 'search_default_open':1, 'search_default_renew':1}</field>
61 <field name="domain">[('type','=','contract')]</field>
62 <field name="search_view_id" ref="view_account_analytic_account_overdue_search"/>
63 <field name="help" type="html">
64 <p class="oe_view_nocontent_create">
65 Click to define a new contract.
67 You will find here the contracts to be renewed because the
68 end date is passed or the working effort is higher than the
69 maximum authorized one.
71 OpenERP automatically sets contracts to be renewed in a pending
72 state. After the negociation, the salesman should close or renew
77 <menuitem action="action_account_analytic_overdue" id="menu_action_account_analytic_overdue" sequence="50" parent="base.menu_invoiced"/>
79 <record id="action_account_analytic_overdue_all" model="ir.actions.act_window">
80 <field name="name">Contracts</field>
81 <field name="res_model">account.analytic.account</field>
82 <field name="view_type">form</field>
83 <field name="view_mode">tree,form</field>
84 <field name="context">{'default_type':'contract', 'search_default_open':1, 'search_default_pending':1}</field>
85 <field name="domain">[('type','=','contract')]</field>
86 <field name="search_view_id" ref="view_account_analytic_account_overdue_search"/>
87 <field name="help" type="html">
88 <p class="oe_view_nocontent_create">
89 Click to create a new contract.
91 Use contracts to follow tasks, issues, timesheets or invoicing based on
92 work done, expenses and/or sales orders. OpenERP will automatically manage
93 the alerts for the renewal of the contracts to the right salesperson.
97 <menuitem id="base.menu_sales" name="Sales"
98 parent="base.menu_base_partner"
100 <menuitem action="action_account_analytic_overdue_all" id="menu_action_account_analytic_overdue_all" sequence="7" parent="base.menu_sales"/>