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="partner_id" position="replace">
11 <field name="partner_id" on_change="on_change_partner_id(partner_id, context)"/>
13 <group name="contract" position="after">
14 <group colspan="2" col="2" name="invoice_data">
15 <separator colspan="2" string="Invoicing Data"/>
16 <field name="to_invoice" widget="selection"/>
17 <field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]" attrs="{'required':[('to_invoice','!=',False)]}"/>
18 <field name="amount_max"/>
20 <group colspan="2" col="2" name="invoice_stats">
21 <separator colspan="4" string="Invoicing Statistics"/>
22 <field name="amount_invoiced"/>
24 <separator colspan="4"/>
25 <group col="9" colspan="8">
26 <field name="state" readonly="1" widget="statusbar"
27 statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
28 <button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
29 <button name="set_open" string="Re-open project" type="object" states="pending,cancelled,close,draft" icon="gtk-ok"/>
30 <button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
31 <button name="set_close" string="Close" type="object" states="open,pending" icon="terp-dialog-close"/>
37 <record id="hr_timesheet_line_form" model="ir.ui.view">
38 <field name="name">hr.analytic.timesheet.form</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 <xpath expr='//separator[@string="Invoicing"]' position='after'>
44 <field name="to_invoice"/>
45 <field name="invoice_id"/>
50 <record id="hr_timesheet_line_form2" model="ir.ui.view">
51 <field name="name">hr.analytic.timesheet.form2</field>
52 <field name="model">hr.analytic.timesheet</field>
53 <field name="type">form</field>
54 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
55 <field name="arch" type="xml">
56 <field name="account_id" position="replace">
57 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)" select="1"/>
62 <record id="hr_timesheet_line_tree" model="ir.ui.view">
63 <field name="name">hr.analytic.timesheet.tree</field>
64 <field name="model">hr.analytic.timesheet</field>
65 <field name="type">tree</field>
66 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
67 <field name="arch" type="xml">
68 <field name="amount" position="after">
69 <field name="to_invoice"/>
74 <record id="hr_timesheet_line_tree2" model="ir.ui.view">
75 <field name="name">hr.analytic.timesheet.tree2</field>
76 <field name="model">hr.analytic.timesheet</field>
77 <field name="type">tree</field>
78 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
79 <field name="arch" type="xml">
81 <field name="account_id" position="replace">
82 <field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id)"/>
87 <!-- Inherits for account analytic lines -->
88 <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
89 <field name="name">account.analytic.line.search.to_invoice</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="date" position="before">
95 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
96 <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
97 <separator orientation="vertical"/>
102 <record id="view_account_analytic_line_tree_inherit" model="ir.ui.view">
103 <field name="name">account.analytic.line.tree.to_invoice</field>
104 <field name="model">account.analytic.line</field>
105 <field name="type">tree</field>
106 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
107 <field name="arch" type="xml">
108 <field name="account_id" position="after">
109 <field name="to_invoice"/>
113 <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
114 <field name="name">account.analytic.line.form.to_invoice</field>
115 <field name="model">account.analytic.line</field>
116 <field name="type">form</field>
117 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
118 <field name="arch" type="xml">
119 <field name="product_uom_id" position="after">
120 <field name="to_invoice"/>
121 <field name="invoice_id"/>
127 <record id="action_hr_analytic_timesheet_open_tree" model="ir.actions.act_window">
128 <field name="name">Bill Tasks Works</field>
129 <field name="res_model">account.analytic.line</field>
130 <field name="view_type">form</field>
131 <field name="view_mode">tree,form</field>
132 <field name="domain">[]</field>
133 <field name="context">{'search_default_to_invoice': 1}</field>
134 <field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
135 <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>
138 action="action_hr_analytic_timesheet_open_tree"
139 id="menu_hr_analytic_timesheet_tree"
140 parent="account.menu_finance_periodical_processing_billing"
143 <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
144 <field name="name">hr_timesheet_invoice.factor.search</field>
145 <field name="model">hr_timesheet_invoice.factor</field>
146 <field name="type">search</field>
147 <field name="arch" type="xml">
148 <search string="Type of invoicing">
155 <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
156 <field name="name">hr_timesheet_invoice.factor.form</field>
157 <field name="model">hr_timesheet_invoice.factor</field>
158 <field name="type">form</field>
159 <field name="arch" type="xml">
160 <form string="Type of invoicing">
161 <field colspan="1" name="name"/>
162 <field colspan="1" name="customer_name"/>
163 <field colspan="2" name="factor"/>
167 <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
168 <field name="name">hr_timesheet_invoice.factor.tree</field>
169 <field name="model">hr_timesheet_invoice.factor</field>
170 <field name="type">tree</field>
171 <field name="arch" type="xml">
172 <tree string="Types of invoicing">
174 <field name="customer_name"/>
175 <field name="factor"/>
179 <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
180 <field name="name">Types of Invoicing</field>
181 <field name="type">ir.actions.act_window</field>
182 <field name="res_model">hr_timesheet_invoice.factor</field>
183 <field name="view_type">form</field>
184 <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
185 <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
186 <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>
189 action="action_hr_timesheet_invoice_factor_form"
190 id="hr_timesheet_invoice_factor_view"
191 parent="account.menu_configuration_misc" sequence="25" groups="base.group_no_one"/>