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="priority">30</field>
8 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
9 <field name="arch" type="xml">
10 <xpath expr='//separator[@name="description"]' position='before'>
11 <group string="Invoice on Timesheets Options" name="invoice_on_timesheets" col="4">
12 <field name="pricelist_id" groups="product.group_sale_pricelist"/>
13 <field name="to_invoice"/>
16 <xpath expr="//field[@name='use_timesheets']" position="replace">
17 <field name="use_timesheets"/>
19 <xpath expr="/form/sheet" position='before'>
21 <button name="set_pending" string="To Renew" type="object" states="open" />
22 <button name="set_close" string="Close Contract" type="object" states="open,pending" />
23 <button name="set_open" string="Set In Progress" type="object" states="pending,close,cancelled,draft" />
24 <button name="set_cancel" string="Cancel Contract" type="object" states="open,pending"/>
25 <field name="state" readonly="1" widget="statusbar"
26 statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
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="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
36 <field name="arch" type="xml">
37 <xpath expr="//group[@string='Accounting']" position='after'>
38 <group string="Invoicing">
39 <field name="to_invoice"/>
40 <field name="invoice_id"/>
46 <record id="hr_timesheet_line_form2" model="ir.ui.view">
47 <field name="name">hr.analytic.timesheet.form2</field>
48 <field name="model">hr.analytic.timesheet</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','in',['normal','contract']),('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id)" context="{'default_use_timesheets': 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="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
61 <field name="arch" type="xml">
62 <field name="amount" position="after">
63 <field name="to_invoice"/>
68 <record id="hr_timesheet_line_tree2" model="ir.ui.view">
69 <field name="name">hr.analytic.timesheet.tree2</field>
70 <field name="model">hr.analytic.timesheet</field>
71 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
72 <field name="arch" type="xml">
73 <field name="account_id" position="replace">
74 <field domain="[('type','in',['normal','contract']),('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id)" context="{'default_use_timesheets': 1}"/>
79 <!-- Inherits for account analytic lines -->
80 <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
81 <field name="name">account.analytic.line.search.to_invoice</field>
82 <field name="model">account.analytic.line</field>
83 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
84 <field name="arch" type="xml">
85 <xpath expr="//filter[@name='others']" position="after">
87 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
88 <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
93 <record id="view_hr_timesheet_line_search_to_invoice" model="ir.ui.view">
94 <field name="name">hr.analytic.timesheet.search.to_invoice</field>
95 <field name="model">hr.analytic.timesheet</field>
96 <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_search"/>
97 <field name="arch" type="xml">
98 <xpath expr="//field[@name='account_id']" position="after">
100 <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
101 <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
107 <record id="view_account_analytic_line_tree_inherit" model="ir.ui.view">
108 <field name="name">account.analytic.line.tree.to_invoice</field>
109 <field name="model">account.analytic.line</field>
110 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
111 <field name="arch" type="xml">
112 <field name="account_id" position="after">
113 <field name="to_invoice"/>
117 <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
118 <field name="name">account.analytic.line.form.to_invoice</field>
119 <field name="model">account.analytic.line</field>
120 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
121 <field name="arch" type="xml">
122 <field name="amount" position="before">
123 <field name="to_invoice"/>
124 <field name="invoice_id"/>
129 <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
130 <field name="name">hr_timesheet_invoice.factor.search</field>
131 <field name="model">hr_timesheet_invoice.factor</field>
132 <field name="arch" type="xml">
133 <search string="Type of invoicing">
134 <field name="name" string="Type of invoicing"/>
138 <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
139 <field name="name">hr_timesheet_invoice.factor.form</field>
140 <field name="model">hr_timesheet_invoice.factor</field>
141 <field name="arch" type="xml">
142 <form string="Type of invoicing" version="7.0">
145 <field name="customer_name"/>
146 <field name="factor"/>
151 <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
152 <field name="name">hr_timesheet_invoice.factor.tree</field>
153 <field name="model">hr_timesheet_invoice.factor</field>
154 <field name="arch" type="xml">
155 <tree string="Types of invoicing">
157 <field name="customer_name"/>
158 <field name="factor"/>
162 <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
163 <field name="name">Types of Invoicing</field>
164 <field name="type">ir.actions.act_window</field>
165 <field name="res_model">hr_timesheet_invoice.factor</field>
166 <field name="view_type">form</field>
167 <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
168 <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
169 <field name="help" type="html">
170 <p class="oe_view_nocontent_create">
171 Click to add a new type of invoicing.
173 OpenERP allows you to create default invoicing types. You might
174 have to regularly assign discounts because of a specific
175 contract or agreement with a customer. From this menu, you can
176 create additional types of invoicing to speed up your
182 action="action_hr_timesheet_invoice_factor_form"
183 id="hr_timesheet_invoice_factor_view"
184 parent="account.menu_configuration_misc" sequence="25" groups="base.group_no_one"/>