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="inherit_id" ref="account.view_account_analytic_account_form"/>
9 <field name="arch" type="xml">
10 <group name="contract" position="after">
11 <group colspan="2" col="2" name="invoice_data">
12 <separator colspan="2" string="Invoicing Data"/>
13 <field name="to_invoice" widget="selection"/>
14 <field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]" attrs="{'required':[('to_invoice','!=',False)]}"/>
15 <field name="amount_max"/>
17 <group colspan="2" col="2" name="invoice_stats">
18 <separator colspan="4" string="Invoicing Statistics"/>
19 <field name="amount_invoiced"/>
21 <separator colspan="4"/>
22 <group col="9" colspan="8">
23 <field name="state" readonly="1" widget="statusbar"
24 statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
25 <button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
26 <button name="set_open" string="Re-open project" type="object" states="pending,cancelled,close,draft" icon="gtk-ok"/>
27 <button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
28 <button name="set_close" string="Close" type="object" states="open,pending" icon="terp-dialog-close"/>
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='//separator[@string="Invoicing"]' position='after'>
41 <field name="to_invoice"/>
42 <field name="invoice_id"/>
47 <record id="hr_timesheet_line_form2" model="ir.ui.view">
48 <field name="name">hr.analytic.timesheet.form2</field>
49 <field name="model">hr.analytic.timesheet</field>
50 <field name="type">form</field>
51 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
52 <field name="arch" type="xml">
53 <field name="account_id" position="replace">
54 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)" select="1"/>
59 <record id="hr_timesheet_line_tree" model="ir.ui.view">
60 <field name="name">hr.analytic.timesheet.tree</field>
61 <field name="model">hr.analytic.timesheet</field>
62 <field name="type">tree</field>
63 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
64 <field name="arch" type="xml">
65 <field name="amount" position="after">
66 <field name="to_invoice"/>
71 <record id="hr_timesheet_line_tree2" model="ir.ui.view">
72 <field name="name">hr.analytic.timesheet.tree2</field>
73 <field name="model">hr.analytic.timesheet</field>
74 <field name="type">tree</field>
75 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
76 <field name="arch" type="xml">
78 <field name="account_id" position="replace">
79 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)"/>
84 <!-- Inherits for account analytic lines -->
85 <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
86 <field name="name">account.analytic.line.search.to_invoice</field>
87 <field name="model">account.analytic.line</field>
88 <field name="type">search</field>
89 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
90 <field name="arch" type="xml">
91 <field name="date" position="before">
92 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
93 <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
94 <separator orientation="vertical"/>
99 <record id="view_account_analytic_line_tree_inherit" model="ir.ui.view">
100 <field name="name">account.analytic.line.tree.to_invoice</field>
101 <field name="model">account.analytic.line</field>
102 <field name="type">tree</field>
103 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
104 <field name="arch" type="xml">
105 <field name="account_id" position="after">
106 <field name="to_invoice"/>
110 <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
111 <field name="name">account.analytic.line.form.to_invoice</field>
112 <field name="model">account.analytic.line</field>
113 <field name="type">form</field>
114 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
115 <field name="arch" type="xml">
116 <field name="product_uom_id" position="after">
117 <field name="to_invoice"/>
118 <field name="invoice_id"/>
124 <record id="action_hr_analytic_timesheet_open_tree" model="ir.actions.act_window">
125 <field name="name">Bill Tasks Works</field>
126 <field name="res_model">account.analytic.line</field>
127 <field name="view_type">form</field>
128 <field name="view_mode">tree,form</field>
129 <field name="domain">[]</field>
130 <field name="context">{'search_default_to_invoice': 1}</field>
131 <field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
132 <field name="help">This list shows you every task you can invoice to the customer. Select the lines and click the Action button to generate the invoices automatically.</field>
135 action="action_hr_analytic_timesheet_open_tree"
136 id="menu_hr_analytic_timesheet_tree"
137 parent="account.menu_finance_periodical_processing_billing"
140 <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
141 <field name="name">hr_timesheet_invoice.factor.search</field>
142 <field name="model">hr_timesheet_invoice.factor</field>
143 <field name="type">search</field>
144 <field name="arch" type="xml">
145 <search string="Type of invoicing">
152 <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
153 <field name="name">hr_timesheet_invoice.factor.form</field>
154 <field name="model">hr_timesheet_invoice.factor</field>
155 <field name="type">form</field>
156 <field name="arch" type="xml">
157 <form string="Type of invoicing">
158 <field colspan="1" name="name"/>
159 <field colspan="1" name="customer_name"/>
160 <field colspan="2" name="factor"/>
164 <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
165 <field name="name">hr_timesheet_invoice.factor.tree</field>
166 <field name="model">hr_timesheet_invoice.factor</field>
167 <field name="type">tree</field>
168 <field name="arch" type="xml">
169 <tree string="Types of invoicing">
171 <field name="customer_name"/>
172 <field name="factor"/>
176 <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
177 <field name="name">Types of Invoicing</field>
178 <field name="type">ir.actions.act_window</field>
179 <field name="res_model">hr_timesheet_invoice.factor</field>
180 <field name="view_type">form</field>
181 <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
182 <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
183 <field name="help">OpenERP allows you to create default invoicing types. You might have to regularly assign discounts because of a specific contract or agreement with a customer. From this menu, you can create additional types of invoicing to speed up your invoicing.</field>
186 action="action_hr_timesheet_invoice_factor_form"
187 id="hr_timesheet_invoice_factor_view"
188 parent="account.menu_configuration_misc" sequence="25"/>