1 <?xml version="1.0" encoding="utf-8"?>
6 <record id="view_invoice_line_calendar" model="ir.ui.view">
7 <field name="name">account.invoice.calendar</field>
8 <field name="model">account.invoice</field>
9 <field name="arch" type="xml">
10 <calendar string="Invoices" color="journal_id" date_start="date_invoice">
11 <field name="partner_id"/>
12 <field name="amount_total"/>
17 <record model="ir.ui.view" id="view_invoice_graph">
18 <field name="name">account.invoice.graph</field>
19 <field name="model">account.invoice</field>
20 <field name="arch" type="xml">
21 <graph string="Invoices" type="bar">
22 <field name="partner_id"/>
23 <field name="amount_total" operator="+"/>
28 <record id="view_invoice_line_tree" model="ir.ui.view">
29 <field name="name">account.invoice.line.tree</field>
30 <field name="model">account.invoice.line</field>
31 <field name="arch" type="xml">
32 <tree string="Invoice Line">
34 <field name="account_id" groups="account.group_account_user"/>
35 <field name="quantity"/>
36 <field name="uos_id" groups="product.group_uom"/>
37 <field name="price_unit"/>
38 <field name="discount" groups="sale.group_discount_per_so_line"/>
39 <field name="price_subtotal"/>
44 <record id="view_invoice_line_form" model="ir.ui.view">
45 <field name="name">account.invoice.line.form</field>
46 <field name="model">account.invoice.line</field>
47 <field name="arch" type="xml">
48 <form string="Invoice Line" version="7.0">
51 <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
52 <label for="quantity"/>
54 <field name="quantity" class="oe_inline"/>
55 <field name="uos_id" class="oe_inline" groups="product.group_uom"
56 on_change="uos_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
58 <field name="price_unit"/>
59 <field name="discount" groups="sale.group_discount_per_so_line"/>
62 <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(product_id, parent.partner_id, parent.type, parent.fiscal_position,account_id)" groups="account.group_account_user"/>
63 <field name="invoice_line_tax_id" context="{'type':parent.type}" domain="[('parent_id','=',False),('company_id', '=', parent.company_id)]" widget="many2many_tags"/>
64 <field domain="[('type','<>','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
65 <field name="company_id" groups="base.group_multi_company" readonly="1"/>
74 <record id="view_invoice_tax_tree" model="ir.ui.view">
75 <field name="name">account.invoice.tax.tree</field>
76 <field name="model">account.invoice.tax</field>
77 <field name="arch" type="xml">
78 <tree string="Manual Invoice Taxes">
79 <field name="sequence"/>
80 <field name="manual"/>
82 <field name="account_id" groups="base.group_account_user"/>
84 <field name="amount"/>
89 <record id="view_invoice_tax_form" model="ir.ui.view">
90 <field name="name">account.invoice.tax.form</field>
91 <field name="model">account.invoice.tax</field>
92 <field name="arch" type="xml">
93 <form string="Manual Invoice Taxes" version="7.0">
96 <field name="sequence"/>
97 <field name="account_id" groups="account.group_account_user"/>
98 <field name="account_analytic_id" domain="[('type','<>','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" groups="analytic.group_analytic_accounting"/>
99 <field name="manual"/>
100 <field name="amount"/>
101 <field name="base" readonly="0"/>
102 <separator colspan="4" string="Tax Codes"/>
103 <field name="base_code_id"/>
104 <field name="base_amount"/>
105 <field name="tax_code_id"/>
106 <field name="tax_amount"/>
107 <field name="factor_base" invisible="True"/>
108 <field name="factor_tax" invisible="True"/>
114 <record id="invoice_tree" model="ir.ui.view">
115 <field name="name">account.invoice.tree</field>
116 <field name="model">account.invoice</field>
117 <field name="arch" type="xml">
118 <tree colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel'" string="Invoice">
119 <field name="partner_id" groups="base.group_user"/>
120 <field name="date_invoice"/>
121 <field name="number"/>
122 <field name="reference" invisible="1"/>
123 <field name="name" invisible="1"/>
124 <field name="journal_id" invisible="1"/>
125 <field name="period_id" invisible="1" groups="account.group_account_user"/>
126 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
127 <field name="user_id"/>
128 <field name="date_due"/>
129 <field name="origin"/>
130 <field name="currency_id" groups="base.group_multi_currency"/>
131 <field name="residual" sum="Residual Amount"/>
132 <field name="amount_untaxed" sum="Untaxed Amount"/>
133 <field name="amount_total" sum="Total Amount"/>
134 <field name="state"/>
139 <record id="invoice_supplier_form" model="ir.ui.view">
140 <field name="name">account.invoice.supplier.form</field>
141 <field name="model">account.invoice</field>
142 <field name="priority">2</field>
143 <field name="arch" type="xml">
144 <form string="Supplier Invoice" version="7.0">
146 <span groups="base.group_user">
147 <button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_highlight"/>
148 <button name="%(action_account_invoice_refund)d" type='action' string='Ask Refund' states='open,paid' />
149 <button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" groups="base.group_no_one"/>
150 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
151 <button name='%(action_account_state_open)d' type='action' string='Re-Open' groups="account.group_account_invoice" attrs="{'invisible':['|', ('state','<>','paid'), ('reconciled', '=', True)]}" help="This button only appears when the state of the invoice is 'paid' (showing that it has been fully reconciled) and auto-computed boolean 'reconciled' is False (depicting that it's not the case anymore). In other words, the invoice has been dereconciled and it does not fit anymore the 'paid' state. You should press this button to re-open it and let it continue its normal process after having resolved the eventual exceptions it may have created."/>
153 <field name="state" widget="statusbar" statusbar_visible="draft,open,paid" statusbar_colors='{"proforma":"blue","proforma2":"blue"}'/>
155 <sheet string="Supplier Invoice">
156 <div class="oe_title">
158 <label string="Draft Invoice" attrs="{'invisible': ['|',('state','<>','draft'), ('type','<>','in_invoice')]}"/>
159 <label string="Draft Refund" attrs="{'invisible': ['|',('state','<>','draft'), ('type','<>','in_refund')]}"/>
160 <label string="Invoice" attrs="{'invisible': ['|',('state', '=', 'draft'), ('type','<>','in_invoice')]}"/>
161 <label string="Refund" attrs="{'invisible': ['|',('state', '=', 'draft'), ('type','<>','in_refund')]}"/>
162 <field name="number" class="oe_inline" attrs="{'invisible': [('state', '=', 'draft')]}"/>
165 <field name="type" invisible="1"/>
168 <field string="Supplier" name="partner_id"
169 on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)"
170 context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}"
171 domain="[('supplier', '=', True)]"/>
172 <field name="fiscal_position" widget="selection"/>
173 <field name="origin"/>
174 <label for="reference_type"/>
176 <field name="reference_type" class="oe_inline oe_edit_only"/>
177 <field name="reference" class="oe_inline"/>
181 <field name="date_invoice"/>
182 <field name="date_due"/>
183 <field domain="[('company_id', '=', company_id), ('type', '=', 'payable')]"
184 name="account_id" groups="account.group_account_user"/>
185 <field name="journal_id" groups="account.group_account_user"
186 on_change="onchange_journal_id(journal_id, context)" widget="selection"/>
187 <field name="currency_id" groups="base.group_multi_currency"/>
191 <page string="Invoice">
192 <field context="{'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False, 'type': type}" name="invoice_line">
193 <tree string="Invoice lines" editable="bottom">
194 <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
195 <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(product_id,parent.partner_id,parent.type,parent.fiscal_position,account_id)" groups="base.group_account_user"/>
196 <field name="invoice_line_tax_id" view_mode="2" context="{'type':parent.type}" domain="[('parent_id','=',False)]"/>
197 <field domain="[('type','<>','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
198 <field name="quantity"/>
199 <field name="price_unit"/>
200 <field name="price_subtotal"/>
201 <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(product_id,parent.partner_id,parent.type,parent.fiscal_position,account_id)" invisible="1"/>
202 <!-- Removed if subtotal is set -->
203 <field name="name" invisible="1"/>
204 <field name="uos_id" invisible="1"/>
207 <group class="oe_subtotal_footer oe_right">
208 <field name="amount_untaxed"/>
210 <label for="amount_tax"/>
211 <button name="button_reset_taxes" states="draft,proforma2"
212 string="(update)" class="oe_link oe_edit_only"
213 type="object" help="Recompute taxes and total"/>
215 <field name="amount_tax" nolabel="1"/>
216 <field name="amount_total" class="oe_subtotal_footer_separator"/>
218 <field name="residual"/>
219 <field name="reconciled" invisible="1"/>
221 <div style="width: 50%%">
222 <field name="tax_line">
223 <tree editable="bottom" string="Taxes">
225 <field name="account_id" groups="account.group_account_invoice"/>
226 <field name="account_analytic_id" domain="[('type','<>','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" groups="analytic.group_analytic_accounting"/>
227 <field name="base" on_change="base_change(base,parent.currency_id,parent.company_id,parent.date_invoice)" readonly="1"/>
228 <field name="amount" on_change="amount_change(amount,parent.currency_id,parent.company_id,parent.date_invoice)"/>
230 <field invisible="True" name="base_amount"/>
231 <field invisible="True" name="tax_amount"/>
232 <field name="factor_base" invisible="True"/>
233 <field name="factor_tax" invisible="True"/>
237 <div class="oe_clear">
238 <label for="comment"/>
240 <field name="comment"/>
242 <page string="Other Info">
245 <field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)"/>
246 <field name="user_id"/>
247 <field name="name" invisible="1"/>
248 <field name="payment_term" widget="selection"/>
251 <field name="move_id" groups="account.group_account_user"/>
252 <field name="period_id" domain="[('state', '=', 'draft')]" groups="account.group_account_user" widget="selection"/>
253 <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/>
257 <page string="Payments">
258 <field name="payment_ids">
259 <tree string="Payments">
260 <field name="date" string="Payment Date"/>
261 <field name="move_id"/>
264 <field name="journal_id"/>
265 <field name="debit"/>
266 <field name="credit"/>
267 <field name="amount_currency"/>
268 <field name="currency_id" groups="base.group_multi_currency"/>
274 <div class="oe_chatter">
275 <field name="message_ids" widget="mail_thread"/>
276 <field name="message_follower_ids" widget="mail_followers"/>
282 <record id="invoice_form" model="ir.ui.view">
283 <field name="name">account.invoice.form</field>
284 <field name="model">account.invoice</field>
285 <field name="arch" type="xml">
286 <form string="Invoice" version="7.0">
288 <span groups="base.group_user">
289 <button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/>
290 <button name="invoice_print" string="Print Invoice" type="object" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/>
291 <button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/>
292 <button name="invoice_print" string="Print Invoice" type="object" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/>
293 <button name="invoice_open" states="draft" string="Validate" class="oe_highlight"/>
294 <button name="invoice_open" states="proforma2" string="Validate"/>
295 <button name="invoice_proforma2" states="draft" string="PRO-FORMA" groups="account.group_proforma_invoices"/>
296 <button name="%(action_account_invoice_refund)d" type='action' string='Refund Invoice' states='paid'/>
297 <button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" groups="base.group_no_one"/>
298 <button name="action_cancel_draft" states="cancel" string="Reset to Draft" type="object"/>
299 <button name='%(action_account_state_open)d' type='action' string='Re-Open' groups="account.group_account_invoice" attrs="{'invisible':['|', ('state','<>','paid'), ('reconciled', '=', True)]}" help="This button only appears when the state of the invoice is 'paid' (showing that it has been fully reconciled) and auto-computed boolean 'reconciled' is False (depicting that it's not the case anymore). In other words, the invoice has been dereconciled and it does not fit anymore the 'paid' state. You should press this button to re-open it and let it continue its normal process after having resolved the eventual exceptions it may have created."/>
300 <!--button name="%(account_invoices)d" string="Print Invoice" type="action" states="open,paid,proforma,sale,proforma2"/-->
302 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,open,paid" statusbar_colors='{"proforma":"blue","proforma2":"blue"}'/>
304 <sheet string="Invoice">
306 <label string="Draft Invoice " attrs="{'invisible': ['|',('state','not in',('draft',)), ('type','<>','out_invoice')]}"/>
307 <label string="Draft Refund " attrs="{'invisible': ['|',('state','not in',('draft',)), ('type','<>','out_refund')]}"/>
308 <label string="Pro Forma Invoice " attrs="{'invisible': [('state','not in',('proforma','proforma2'))]}"/>
309 <label string="Invoice " attrs="{'invisible': ['|',('state','in',('draft','proforma','proforma2')), ('type','<>','out_invoice')]}"/>
310 <label string="Refund " attrs="{'invisible': ['|',('state','in',('draft','proforma','proforma2')), ('type','<>','out_refund')]}"/>
311 <field name="number" readonly="1" class="oe_inline"/>
313 <field name="type" invisible="1"/>
316 <field string="Customer" name="partner_id"
317 on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)"
318 groups="base.group_user" context="{'search_default_customer':1, 'show_address': 1}"
319 options='{"always_reload": true}'/>
320 <field name="fiscal_position" widget="selection" />
323 <field name="date_invoice"/>
324 <field name="journal_id" groups="account.group_account_user"
325 on_change="onchange_journal_id(journal_id, context)" widget="selection"/>
326 <field domain="[('company_id', '=', company_id),('type','=', 'receivable')]"
327 name="account_id" groups="account.group_account_user"/>
329 <label for="currency_id" groups="base.group_multi_currency"/>
331 <field name="currency_id" class="oe_inline" groups="base.group_multi_currency"/>
332 <!-- note fp: I don't think we need this feature ?
333 <button name="%(action_account_change_currency)d" type="action"
334 icon="terp-stock_effects-object-colorize"
335 attrs="{'invisible':[('state','!=','draft')]}"
336 groups="account.group_account_user"/> -->
340 <field name="sent" invisible="1"/>
341 <notebook colspan="4">
342 <page string="Invoice Lines">
343 <field name="invoice_line" nolabel="1" widget="one2many_list" context="{'type': type}">
344 <tree string="Invoice Lines" editable="bottom">
345 <field name="invoice_line_tax_id" invisible="1"/>
346 <field name="product_id" />
348 <field name="account_id" groups="account.group_account_user"
349 domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]"
350 on_change="onchange_account_id(product_id, parent.partner_id, parent.type, parent.fiscal_position,account_id)"/>
351 <field name="quantity"/>
352 <field name="uos_id" groups="product.group_uom"
353 on_change="uos_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
354 <field name="price_unit"/>
355 <field name="discount" groups="sale.group_discount_per_so_line"/>
356 <field name="price_subtotal"/>
359 <group class="oe_subtotal_footer oe_right">
360 <field name="amount_untaxed"/>
362 <label for="amount_tax"/>
363 <button name="button_reset_taxes" states="draft,proforma2"
364 string="(update)" class="oe_link oe_edit_only"
365 type="object" help="Recompute taxes and total"/>
367 <field name="amount_tax" nolabel="1"/>
368 <field name="amount_total" class="oe_subtotal_footer_separator"/>
369 <field name="residual" groups="account.group_account_user"/>
370 <field name="reconciled" invisible="1"/>
373 <field name="payment_term" class="oe_inline"/>
375 <div class="oe_clear">
376 <label for="comment"/>
378 <field name="comment" class="oe_inline" placeholder="Additional notes..."/>
380 <page string="Other Info">
383 <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/>
384 <field name="user_id" groups="base.group_user"/>
385 <field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id"/>
386 <field name="period_id" domain="[('state', '=', 'draft')]"
387 groups="account.group_account_manager"
388 string="Accounting Period"
389 placeholder="force period"/>
390 <field name="date_due"/>
393 <field name="origin" groups="base.group_user"/>
394 <field name="name" string="Customer Reference"/>
395 <field name="move_id" groups="account.group_account_user"/>
398 <field name="tax_line">
399 <tree editable="bottom" string="Taxes">
401 <field name="account_id" groups="account.group_account_user"/>
402 <field name="base" on_change="base_change(base,parent.currency_id,parent.company_id,parent.date_invoice)" readonly="1"/>
403 <field name="amount" on_change="amount_change(amount,parent.currency_id,parent.company_id,parent.date_invoice)"/>
404 <field invisible="True" name="base_amount"/>
405 <field invisible="True" name="tax_amount"/>
406 <field name="factor_base" invisible="True"/>
407 <field name="factor_tax" invisible="True"/>
411 <page string="Payments" groups="base.group_user">
412 <field name="payment_ids">
413 <tree string="Payments">
415 <field name="move_id"/>
418 <field name="journal_id" groups="base.group_user"/>
419 <field name="debit"/>
420 <field name="credit"/>
421 <field name="amount_currency" groups="base.group_multi_currency"/>
422 <field name="currency_id" groups="base.group_multi_currency"/>
428 <div class="oe_chatter">
429 <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
430 <field name="message_follower_ids" widget="mail_followers"/>
436 <record id="view_account_invoice_filter" model="ir.ui.view">
437 <field name="name">account.invoice.select</field>
438 <field name="model">account.invoice</field>
439 <field name="arch" type="xml">
440 <search string="Search Invoice">
441 <field name="number" string="Invoice" filter_domain="['|', ('number','ilike',self),('origin','ilike',self)]"/>
442 <filter name="draft" icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Invoices"/>
443 <filter name="proforma" icon="terp-gtk-media-pause" string="Proforma" domain="[('state','=','proforma2')]" help="Proforma Invoices" groups="account.group_proforma_invoices"/>
444 <filter name="invoices" icon="terp-dolar" string="Invoices" domain="[('state','not in',['draft','cancel'])]" help="Proforma/Open/Paid Invoices"/>
445 <filter name="unpaid" icon="terp-dolar_ok!" string="Unpaid" domain="[('state','=','open')]" help="Unpaid Invoices"/>
447 <filter domain="[('user_id','=',uid)]" help="My Invoices" icon="terp-personal"/>
448 <field name="partner_id"/>
449 <field name="user_id" string="Salesperson"/>
450 <field name="journal_id"/>
451 <field name="period_id" string="Period"/>
452 <group expand="0" string="Group By...">
453 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
454 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
455 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
456 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
457 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
458 <filter string="Invoice Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_invoice'}"/>
459 <filter string="Due Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_due'}"/>
465 <record id="action_invoice_tree" model="ir.actions.act_window">
466 <field name="name">Invoices</field>
467 <field name="res_model">account.invoice</field>
468 <field name="view_type">form</field>
469 <field name="view_mode">tree,form,calendar,graph</field>
470 <field name="view_id" ref="invoice_tree"/>
471 <field name="context">{'type':'out_invoice'}</field>
472 <field name="search_view_id" ref="view_account_invoice_filter"/>
475 <record id="action_invoice_tree_pending_invoice" model="ir.actions.act_window">
476 <field name="name">Pending Invoice</field>
477 <field name="res_model">account.invoice</field>
478 <field name="view_type">form</field>
479 <field name="view_mode">tree,form,calendar,graph</field>
480 <field name="view_id" ref="invoice_tree"/>
481 <field name="context">{'type':'out_invoice'}</field>
482 <field name="domain">[('state','=','draft')]</field>
483 <!-- <field name="search_view_id" ref="view_account_invoice_filter"/>-->
486 <record id="action_invoice_tree_view1" model="ir.actions.act_window.view">
487 <field eval="1" name="sequence"/>
488 <field name="view_mode">tree</field>
489 <field name="act_window_id" ref="action_invoice_tree"/>
492 <record id="action_invoice_tree_view2" model="ir.actions.act_window.view">
493 <field eval="2" name="sequence"/>
494 <field name="view_mode">form</field>
495 <field name="view_id" ref="invoice_form"/>
496 <field name="act_window_id" ref="action_invoice_tree"/>
499 <record id="action_invoice_tree1" model="ir.actions.act_window">
500 <field name="name">Customer Invoices</field>
501 <field name="res_model">account.invoice</field>
502 <field name="view_type">form</field>
503 <field name="view_mode">tree,form,calendar,graph</field>
504 <field eval="False" name="view_id"/>
505 <field name="domain">[('type','=','out_invoice')]</field>
506 <field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field>
507 <field name="search_view_id" ref="view_account_invoice_filter"/>
508 <field name="help" type="html">
509 <p class="oe_view_nocontent_create">
510 Click to create a customer invoice.
512 OpenERP's electronic invoicing allows to ease and fasten the
513 collection of customer payments. Your customer receives the
514 invoice by email and he can pay online and/or import it
517 The discussions with your customer are automatically displayed at
518 the bottom of each invoice.
524 <record id="action_invoice_tree1_view1" model="ir.actions.act_window.view">
525 <field eval="1" name="sequence"/>
526 <field name="view_mode">tree</field>
527 <field name="act_window_id" ref="action_invoice_tree1"/>
530 <record id="action_invoice_tree1_view2" model="ir.actions.act_window.view">
531 <field eval="2" name="sequence"/>
532 <field name="view_mode">form</field>
533 <field name="view_id" ref="invoice_form"/>
534 <field name="act_window_id" ref="action_invoice_tree1"/>
537 <menuitem action="action_invoice_tree1" id="menu_action_invoice_tree1" parent="menu_finance_receivables"/>
539 <record id="action_invoice_tree2" model="ir.actions.act_window">
540 <field name="name">Supplier Invoices</field>
541 <field name="res_model">account.invoice</field>
542 <field name="view_type">form</field>
543 <field name="view_mode">tree,form,calendar,graph</field>
544 <field eval="False" name="view_id"/>
545 <field name="domain">[('type','=','in_invoice')]</field>
546 <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
547 <field name="search_view_id" ref="view_account_invoice_filter"/>
548 <field name="help" type="html">
549 <p class="oe_view_nocontent_create">
550 Click to record a new supplier invoice.
552 You can control the invoice from your supplier according to
553 what you purchased or received. OpenERP can also generate
554 draft invoices automatically from purchase orders or receipts.
558 <menuitem action="action_invoice_tree2" id="menu_action_invoice_tree2" parent="menu_finance_payables"/>
560 <record id="action_invoice_tree3" model="ir.actions.act_window">
561 <field name="name">Customer Refunds</field>
562 <field name="res_model">account.invoice</field>
563 <field name="view_type">form</field>
564 <field name="view_mode">tree,form,calendar,graph</field>
565 <field eval="False" name="view_id"/>
566 <field name="domain">[('type','=','out_refund')]</field>
567 <field name="context">{'default_type':'out_refund', 'type':'out_refund', 'journal_type': 'sale_refund'}</field>
568 <field name="search_view_id" ref="view_account_invoice_filter"/>
569 <field name="help" type="html">
570 <p class="oe_view_nocontent_create">
571 Click to create a customer refund.
573 A refund is a document that credits an invoice completely or
576 Instead of manually creating a customer refund, you
577 can generate it directly from the related customer invoice.
582 <record id="action_invoice_tree3_view1" model="ir.actions.act_window.view">
583 <field eval="1" name="sequence"/>
584 <field name="view_mode">tree</field>
585 <field name="act_window_id" ref="action_invoice_tree3"/>
588 <record id="action_invoice_tree3_view2" model="ir.actions.act_window.view">
589 <field eval="2" name="sequence"/>
590 <field name="view_mode">form</field>
591 <field name="view_id" ref="invoice_form"/>
592 <field name="act_window_id" ref="action_invoice_tree3"/>
594 <menuitem action="action_invoice_tree3" id="menu_action_invoice_tree3" parent="menu_finance_receivables"/>
596 <record id="action_invoice_tree4" model="ir.actions.act_window">
597 <field name="name">Supplier Refunds</field>
598 <field name="res_model">account.invoice</field>
599 <field name="view_type">form</field>
600 <field name="view_mode">tree,form,calendar,graph</field>
601 <field eval="False" name="view_id"/>
602 <field name="domain">[('type','=','in_refund')]</field>
603 <field name="context">{'default_type': 'in_refund', 'type': 'in_refund', 'journal_type': 'purchase_refund'}</field>
604 <field name="search_view_id" ref="view_account_invoice_filter"/>
605 <field name="help" type="html">
606 <p class="oe_view_nocontent_create">
607 Click to register a refund you received from a supplier.
609 Instead of creating the supplier refund manually, you can generate
610 refunds and reconcile them directly from the related supplier invoice.
614 <menuitem action="action_invoice_tree4" id="menu_action_invoice_tree4" parent="menu_finance_payables"/>
616 <act_window context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}" id="act_res_partner_2_account_invoice_opened" name="Invoices" res_model="account.invoice" src_model="res.partner"/>
619 id="act_account_journal_2_account_invoice_opened"
620 name="Unpaid Invoices"
621 context="{'search_default_journal_id': [active_id], 'search_default_unpaid':1, 'default_journal_id': active_id}"
622 res_model="account.invoice"
623 src_model="account.journal"/>