1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="account_analytic_account_form_form" model="ir.ui.view">
5 <field name="name">account.analytic.account.invoice.form</field>
6 <field name="model">account.analytic.account</field>
7 <field name="type">form</field>
8 <field name="priority">30</field>
9 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
10 <field name="arch" type="xml">
11 <xpath expr='//separator[@name="description"]' position='before'>
12 <group string="Invoice on Timesheets Options" name="invoice_on_timesheets" col="4">
13 <field name="pricelist_id" />
14 <field name="to_invoice" widget="selection"/>
17 <xpath expr="//field[@name='use_timesheets']" position="replace">
18 <field name="use_timesheets" on_change="on_change_use_timesheets(use_timesheets, context)"/>
20 <xpath expr="/form/sheet" position='before'>
22 <button name="set_pending" string="Pending" type="object" states="open" />
23 <button name="set_close" string="Close" type="object" states="open,pending" />
24 <button name="set_open" string="Re-open project" type="object" states="pending,close" />
25 <button name="set_open" string="Re-open project" type="object" states="cancelled,draft"/>
26 <button name="set_cancel" string="Cancel" type="object" states="open,pending"/>
27 <field name="state" readonly="1" widget="statusbar"
28 statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
34 <record id="hr_timesheet_line_form" model="ir.ui.view">
35 <field name="name">hr.analytic.timesheet.form</field>
36 <field name="model">hr.analytic.timesheet</field>
37 <field name="type">form</field>
38 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
39 <field name="arch" type="xml">
40 <xpath expr="//group[@string='Accounting']" position='after'>
41 <group string="Invoicing">
42 <field name="to_invoice"/>
43 <field name="invoice_id"/>
49 <record id="hr_timesheet_line_form2" model="ir.ui.view">
50 <field name="name">hr.analytic.timesheet.form2</field>
51 <field name="model">hr.analytic.timesheet</field>
52 <field name="type">form</field>
53 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
54 <field name="arch" type="xml">
55 <field name="account_id" position="replace">
56 <field domain="[('type','in',['normal','contract']),('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id)" context="{'default_use_timesheets': 1}"/>
61 <record id="hr_timesheet_line_tree" model="ir.ui.view">
62 <field name="name">hr.analytic.timesheet.tree</field>
63 <field name="model">hr.analytic.timesheet</field>
64 <field name="type">tree</field>
65 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
66 <field name="arch" type="xml">
67 <field name="amount" position="after">
68 <field name="to_invoice"/>
73 <record id="hr_timesheet_line_tree2" model="ir.ui.view">
74 <field name="name">hr.analytic.timesheet.tree2</field>
75 <field name="model">hr.analytic.timesheet</field>
76 <field name="type">tree</field>
77 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
78 <field name="arch" type="xml">
79 <field name="account_id" position="replace">
80 <field domain="[('type','in',['normal','contract']),('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id)" context="{'default_use_timesheets': 1}"/>
85 <!-- Inherits for account analytic lines -->
86 <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
87 <field name="name">account.analytic.line.search.to_invoice</field>
88 <field name="model">account.analytic.line</field>
89 <field name="type">search</field>
90 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
91 <field name="arch" type="xml">
92 <xpath expr="//filter[@name='others']" position="after">
94 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
95 <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
100 <record id="view_account_analytic_line_tree_inherit" model="ir.ui.view">
101 <field name="name">account.analytic.line.tree.to_invoice</field>
102 <field name="model">account.analytic.line</field>
103 <field name="type">tree</field>
104 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
105 <field name="arch" type="xml">
106 <field name="account_id" position="after">
107 <field name="to_invoice"/>
111 <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
112 <field name="name">account.analytic.line.form.to_invoice</field>
113 <field name="model">account.analytic.line</field>
114 <field name="type">form</field>
115 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
116 <field name="arch" type="xml">
117 <field name="amount" position="before">
118 <field name="to_invoice"/>
119 <field name="invoice_id"/>
125 <record id="action_hr_analytic_timesheet_open_tree" model="ir.actions.act_window">
126 <field name="name">Invoice Tasks Work</field>
127 <field name="res_model">account.analytic.line</field>
128 <field name="view_type">form</field>
129 <field name="view_mode">tree,form</field>
130 <field name="domain">[]</field>
131 <field name="context">{'search_default_to_invoice': 1}</field>
132 <field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
133 <field name="help" type="html">
134 <p class="oe_view_nocontent_create">
135 Click to add some tasks work to be invoiced.
137 This list shows every task you can invoice to the customer.
138 Select the lines and invoice from the '<i>more...</i>' contextual
139 menu to generate invoices automatically.
144 action="action_hr_analytic_timesheet_open_tree"
145 id="menu_hr_analytic_timesheet_tree"
146 parent="account.menu_finance_periodical_processing_billing"
149 <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
150 <field name="name">hr_timesheet_invoice.factor.search</field>
151 <field name="model">hr_timesheet_invoice.factor</field>
152 <field name="type">search</field>
153 <field name="arch" type="xml">
154 <search string="Type of invoicing">
155 <field name="name" string="Type of invoicing"/>
159 <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
160 <field name="name">hr_timesheet_invoice.factor.form</field>
161 <field name="model">hr_timesheet_invoice.factor</field>
162 <field name="type">form</field>
163 <field name="arch" type="xml">
164 <form string="Type of invoicing" version="7.0">
167 <field name="customer_name"/>
168 <field name="factor"/>
173 <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
174 <field name="name">hr_timesheet_invoice.factor.tree</field>
175 <field name="model">hr_timesheet_invoice.factor</field>
176 <field name="type">tree</field>
177 <field name="arch" type="xml">
178 <tree string="Types of invoicing">
180 <field name="customer_name"/>
181 <field name="factor"/>
185 <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
186 <field name="name">Types of Invoicing</field>
187 <field name="type">ir.actions.act_window</field>
188 <field name="res_model">hr_timesheet_invoice.factor</field>
189 <field name="view_type">form</field>
190 <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
191 <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
192 <field name="help" type="html">
193 <p class="oe_view_nocontent_create">
194 Click to add a new type of invoicing.
196 OpenERP allows you to create default invoicing types. You might
197 have to regularly assign discounts because of a specific
198 contract or agreement with a customer. From this menu, you can
199 create additional types of invoicing to speed up your
205 action="action_hr_timesheet_invoice_factor_form"
206 id="hr_timesheet_invoice_factor_view"
207 parent="account.menu_configuration_misc" sequence="25" groups="base.group_no_one"/>