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 <field name="user_id" 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" />
15 <field name="amount_max"/>
16 <field name="amount_invoiced"/>
17 <separator colspan="4" string="State"/>
24 <record id="hr_timesheet_line_form" model="ir.ui.view">
25 <field name="name">hr.analytic.timesheet.form</field>
26 <field name="model">hr.analytic.timesheet</field>
27 <field name="type">form</field>
28 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
29 <field name="arch" type="xml">
30 <xpath expr='//separator[@string="Invoicing"]' position='after'>
31 <field name="to_invoice"/>
32 <field name="invoice_id"/>
37 <record id="hr_timesheet_line_form2" model="ir.ui.view">
38 <field name="name">hr.analytic.timesheet.form2</field>
39 <field name="model">hr.analytic.timesheet</field>
40 <field name="type">form</field>
41 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
42 <field name="arch" type="xml">
43 <field name="account_id" position="replace">
44 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)" select="1"/>
49 <record id="hr_timesheet_line_tree" model="ir.ui.view">
50 <field name="name">hr.analytic.timesheet.tree</field>
51 <field name="model">hr.analytic.timesheet</field>
52 <field name="type">tree</field>
53 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
54 <field name="arch" type="xml">
55 <field name="amount" position="after">
56 <field name="to_invoice"/>
61 <record id="hr_timesheet_line_tree2" model="ir.ui.view">
62 <field name="name">hr.analytic.timesheet.tree2</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">
68 <field name="account_id" position="replace">
69 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)"/>
74 <!-- Inherits for account analytic lines -->
75 <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
76 <field name="name">account.analytic.line.search.to_invoice</field>
77 <field name="model">account.analytic.line</field>
78 <field name="type">search</field>
79 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
80 <field name="arch" type="xml">
81 <filter name="others" position="after">
82 <separator orientation="vertical"/>
83 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False),('to_invoice','<>',False)]" icon="terp-dolar"/>
88 <record id="view_account_analytic_line_search_account_inherit" model="ir.ui.view">
89 <field name="name">account.analytic.line.search.account_id</field>
90 <field name="model">account.analytic.line</field>
91 <field name="type">search</field>
92 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
93 <field name="arch" type="xml">
94 <field name="account_id" position="replace">
95 <field name="account_id" string="Project" />
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"/>
112 <record id="view_account_analytic_line_form_inherit_account_id" model="ir.ui.view">
113 <field name="name">account.analytic.line.form.account_id</field>
114 <field name="model">account.analytic.line</field>
115 <field name="type">form</field>
116 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
117 <field name="arch" type="xml">
118 <field name="account_id" position="replace">
119 <field name="account_id" string="Project"/>
124 <record id="view_account_analytic_line_tree_inherit_account_id" model="ir.ui.view">
125 <field name="name">account.analytic.line.tree.account_id</field>
126 <field name="model">account.analytic.line</field>
127 <field name="type">tree</field>
128 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
129 <field name="arch" type="xml">
130 <field name="account_id" position="replace">
131 <field name="account_id" string="Project"/>
136 <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
137 <field name="name">account.analytic.line.form.to_invoice</field>
138 <field name="model">account.analytic.line</field>
139 <field name="type">form</field>
140 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
141 <field name="arch" type="xml">
142 <field name="product_uom_id" position="after">
143 <field name="to_invoice"/>
144 <field name="invoice_id"/>
150 <record id="action_hr_analytic_timesheet_open_tree" model="ir.actions.act_window">
151 <field name="name">Bill Tasks Works</field>
152 <field name="res_model">account.analytic.line</field>
153 <field name="view_type">form</field>
154 <field name="view_mode">tree,form</field>
155 <field name="domain">[]</field>
156 <field name="context">{'search_default_to_invoice': 1}</field>
157 <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>
160 action="action_hr_analytic_timesheet_open_tree"
161 id="menu_hr_analytic_timesheet_tree"
162 parent="account.menu_finance_periodical_processing_billing"
165 <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
166 <field name="name">hr_timesheet_invoice.factor.search</field>
167 <field name="model">hr_timesheet_invoice.factor</field>
168 <field name="type">search</field>
169 <field name="arch" type="xml">
170 <search string="Type of invoicing">
177 <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
178 <field name="name">hr_timesheet_invoice.factor.form</field>
179 <field name="model">hr_timesheet_invoice.factor</field>
180 <field name="type">form</field>
181 <field name="arch" type="xml">
182 <form string="Type of invoicing">
183 <field colspan="1" name="name"/>
184 <field colspan="1" name="customer_name"/>
185 <field colspan="2" name="factor"/>
189 <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
190 <field name="name">hr_timesheet_invoice.factor.tree</field>
191 <field name="model">hr_timesheet_invoice.factor</field>
192 <field name="type">tree</field>
193 <field name="arch" type="xml">
194 <tree string="Types of invoicing">
196 <field name="customer_name"/>
197 <field name="factor"/>
201 <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
202 <field name="name">Types of Invoicing</field>
203 <field name="type">ir.actions.act_window</field>
204 <field name="res_model">hr_timesheet_invoice.factor</field>
205 <field name="view_type">form</field>
206 <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
207 <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
208 <field name="help">OpenERP allows you to create default invoicing types. You could need to regularly make discounts based on a specific contract or agreement with a customer. From this menu, you can create additional default types of invoicing that will speed up your invoicing.</field>
211 action="action_hr_timesheet_invoice_factor_form"
212 id="hr_timesheet_invoice_factor_view"
213 parent="account.menu_low_level"/>