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"/>
18 <group col="9" colspan="8">
19 <field name="state" readonly="1"/>
20 <button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
21 <button name="set_template" string="Set as Template" type="object" states="open" icon="gtk-convert"/>
22 <button name="set_open" string="Reactivate Account" type="object" states="pending,cancelled,close" icon="gtk-ok"/>
23 <button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
24 <button name="set_close" string="Close" type="object" states="open,pending" icon="terp-dialog-close"/>
25 <button name="reset_account" string="Reset as Account" type="object" states="template" icon="gtk-convert"/>
32 <record id="hr_timesheet_line_form" model="ir.ui.view">
33 <field name="name">hr.analytic.timesheet.form</field>
34 <field name="model">hr.analytic.timesheet</field>
35 <field name="type">form</field>
36 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
37 <field name="arch" type="xml">
38 <xpath expr='//separator[@string="Invoicing"]' position='after'>
39 <field name="to_invoice"/>
40 <field name="invoice_id"/>
45 <record id="hr_timesheet_line_form2" model="ir.ui.view">
46 <field name="name">hr.analytic.timesheet.form2</field>
47 <field name="model">hr.analytic.timesheet</field>
48 <field name="type">form</field>
49 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
50 <field name="arch" type="xml">
51 <field name="account_id" position="replace">
52 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)" select="1"/>
57 <record id="hr_timesheet_line_tree" model="ir.ui.view">
58 <field name="name">hr.analytic.timesheet.tree</field>
59 <field name="model">hr.analytic.timesheet</field>
60 <field name="type">tree</field>
61 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
62 <field name="arch" type="xml">
63 <field name="amount" position="after">
64 <field name="to_invoice"/>
69 <record id="hr_timesheet_line_tree2" model="ir.ui.view">
70 <field name="name">hr.analytic.timesheet.tree2</field>
71 <field name="model">hr.analytic.timesheet</field>
72 <field name="type">tree</field>
73 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
74 <field name="arch" type="xml">
76 <field name="account_id" position="replace">
77 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)"/>
82 <!-- Inherits for account analytic lines -->
83 <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
84 <field name="name">account.analytic.line.search.to_invoice</field>
85 <field name="model">account.analytic.line</field>
86 <field name="type">search</field>
87 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
88 <field name="arch" type="xml">
89 <filter name="others" position="after">
90 <separator orientation="vertical"/>
91 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False),('to_invoice','<>',False)]" icon="terp-dolar"/>
97 <record id="view_account_analytic_line_tree_inherit" model="ir.ui.view">
98 <field name="name">account.analytic.line.tree.to_invoice</field>
99 <field name="model">account.analytic.line</field>
100 <field name="type">tree</field>
101 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
102 <field name="arch" type="xml">
103 <field name="account_id" position="after">
104 <field name="to_invoice"/>
108 <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
109 <field name="name">account.analytic.line.form.to_invoice</field>
110 <field name="model">account.analytic.line</field>
111 <field name="type">form</field>
112 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
113 <field name="arch" type="xml">
114 <field name="product_uom_id" position="after">
115 <field name="to_invoice"/>
116 <field name="invoice_id"/>
122 <record id="action_hr_analytic_timesheet_open_tree" model="ir.actions.act_window">
123 <field name="name">Bill Tasks Works</field>
124 <field name="res_model">account.analytic.line</field>
125 <field name="view_type">form</field>
126 <field name="view_mode">tree,form</field>
127 <field name="domain">[]</field>
128 <field name="context">{'search_default_to_invoice': 1}</field>
129 <field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
130 <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>
133 action="action_hr_analytic_timesheet_open_tree"
134 id="menu_hr_analytic_timesheet_tree"
135 parent="account.menu_finance_periodical_processing_billing"
138 <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
139 <field name="name">hr_timesheet_invoice.factor.search</field>
140 <field name="model">hr_timesheet_invoice.factor</field>
141 <field name="type">search</field>
142 <field name="arch" type="xml">
143 <search string="Type of invoicing">
150 <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
151 <field name="name">hr_timesheet_invoice.factor.form</field>
152 <field name="model">hr_timesheet_invoice.factor</field>
153 <field name="type">form</field>
154 <field name="arch" type="xml">
155 <form string="Type of invoicing">
156 <field colspan="1" name="name"/>
157 <field colspan="1" name="customer_name"/>
158 <field colspan="2" name="factor"/>
162 <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
163 <field name="name">hr_timesheet_invoice.factor.tree</field>
164 <field name="model">hr_timesheet_invoice.factor</field>
165 <field name="type">tree</field>
166 <field name="arch" type="xml">
167 <tree string="Types of invoicing">
169 <field name="customer_name"/>
170 <field name="factor"/>
174 <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
175 <field name="name">Types of Invoicing</field>
176 <field name="type">ir.actions.act_window</field>
177 <field name="res_model">hr_timesheet_invoice.factor</field>
178 <field name="view_type">form</field>
179 <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
180 <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
181 <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>
184 action="action_hr_timesheet_invoice_factor_form"
185 id="hr_timesheet_invoice_factor_view"
186 parent="account.menu_configuration_misc" sequence="25"/>