1
<?xml version="1.0" encoding="utf-8"?>
9
<!-- Debit note list -->
10
<record id="view_debit_note_tree" model="ir.ui.view">
11
<field name="name">Debit Note</field>
12
<field name="model">account.invoice</field>
13
<field name="type">tree</field>
14
<field name="priority">19</field>
15
<field name="arch" type="xml">
16
<tree string="Note" colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')">
17
<field name="document_date"/>
18
<field name="date_invoice"/>
19
<field name="number"/>
20
<field name="partner_id"/>
22
<field name="date_due"/>
23
<field name="origin"/>
24
<field name="currency_id"/>
25
<field name="residual"/>
26
<field name="amount_total"/>
32
<!-- Debit Note form -->
33
<record id="view_debit_note_form" model="ir.ui.view">
34
<field name="name">debit.note.form</field>
35
<field name="model">account.invoice</field>
36
<field name="type">form</field>
37
<field name="priority">60</field>
38
<field name="arch" type="xml">
39
<form string="Debit Note" hide_duplicate_button="1">
40
<group colspan="4" col="8">
41
<field name="journal_id" domain="[('is_current_instance','=',True)]" on_change="onchange_journal_id(journal_id)"/>
42
<field name="number"/>
43
<field name="type" invisible="1"/>
44
<field name="currency_id" width="50"/>
45
<button name="%(account.action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" />
47
<field string="Customer" name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'search_default_customer': 1}"/>
48
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
50
<field name="document_date"/>
51
<field name="date_invoice"/>
53
<group colspan="4" col="8">
54
<button name="button_debit_note_import_invoice" string="Import invoice" states="draft" type="object" icon="gtk-save-as" colspan="2"
55
help="Import invoice that come from the default account given in Company configuration ('Import invoice default account for Debit Note')"/>
58
<notebook colspan="4">
59
<page string="Invoice">
60
<field domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" />
62
<field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list">
63
<tree editable="top" string="Invoice Line" noteditable="1" hide_new_button="1" colors="red: inactive_product == True">
65
<field name="account_id" />
66
<field name="quantity"/>
67
<field name="uos_id" string="UoM"/>
68
<field name="price_unit"/>
69
<field name="price_subtotal"/>
70
<field name="inactive_product" invisible="1" />
71
<field name="inactive_error" invisible="1" />
74
<group col="8" colspan="4">
75
<label string="" colspan="3"/>
76
<field name="reconciled"/>
77
<field name="amount_total"/>
78
<label string="" colspan="3"/>
80
<field name="residual"/>
82
<group col="8" colspan="4">
83
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" icon="gtk-cancel"/>
84
<button name="%(account.action_account_invoice_refund)d" type='action' string='Refund' states='open,paid' icon="gtk-execute"/>
85
<button name='%(account.action_account_state_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert" groups="base.group_no_one"/>
86
<button name="invoice_open" type="object" states="draft,proforma2" string="Validate" icon="gtk-go-forward"/>
87
<button name="%(account.account_invoices)d" string="Print Invoice" type="action" icon="gtk-print" states="open,paid,proforma,sale,proforma2"/>
90
<page string="Other Info">
91
<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"/>
93
<field name="date_due"/>
94
<field name="user_id"/>
96
<field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id" />
97
<field name="origin"/>
98
<field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id" />
99
<field name="move_id" />
100
<separator colspan="4" string="Additional Information"/>
101
<field colspan="4" name="comment" nolabel="1"/>
103
<page string="Payments">
104
<field name="payment_ids" colspan="4" nolabel="1">
105
<tree string="Payments">
109
<field name="journal_id" />
110
<field name="debit"/>
111
<field name="credit"/>
112
<field name="amount_currency"/>
113
<field name="currency_id"/>
123
In-kind Donation views
126
<!-- In-kind Donation list -->
127
<record id="view_inkind_donation_tree" model="ir.ui.view">
128
<field name="name">inkind.donation.form</field>
129
<field name="model">account.invoice</field>
130
<field name="type">tree</field>
131
<field name="priority">19</field>
132
<field name="arch" type="xml">
133
<tree string="In-kind Donation" colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')" hide_new_button="1">
134
<field name="document_date" />
135
<field name="date_invoice"/>
136
<field name="number"/>
137
<field name="partner_id"/>
139
<field name="origin"/>
140
<field name="currency_id"/>
141
<field name="amount_total"/>
142
<field name="state"/>
147
<!-- In-kind Donation form -->
148
<record id="view_inkind_donation_form" model="ir.ui.view">
149
<field name="name">inkind.donation.form</field>
150
<field name="model">account.invoice</field>
151
<field name="type">form</field>
152
<field name="priority">63</field>
153
<field name="arch" type="xml">
154
<form string="In-kind Donation" hide_duplicate_button="1">
155
<group colspan="4" col="8">
156
<field name="journal_id" domain="[('is_current_instance','=',True)]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
157
<field name="number"/>
158
<field name="type" invisible="1"/>
159
<field name="is_inkind_donation" invisible="1"/>
160
<field name="currency_id" width="50"/>
161
<button name="%(account.action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" />
163
<field string="Donor" name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id, is_inkind_donation)" context="{'search_default_customer': 1}"/>
164
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id" string="Address"/>
166
<field name="document_date"/>
167
<field name="date_invoice" />
169
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-check" context="context" colspan="2" attrs="{'invisible': [('analytic_distribution_id', '=', False)]}"/>
170
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-emblem-important" context="context" colspan="2" attrs="{'invisible': [('analytic_distribution_id', '!=', False)]}"/>
171
<field name="analytic_distribution_id" invisible="1"/>
174
<notebook colspan="4">
175
<page string="Invoice">
176
<field invisible="1" domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" />
177
<field name="fake_account_id"/>
178
<field name="reference_type" nolabel="1" size="0"/>
179
<field name="reference" nolabel="1"/>
181
<field name="origin"/>
183
<label string="" colspan="2"/>
184
<field name="check_total" required="2"/>
185
<field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list">
186
<tree editable="top" string="Donation Lines" noteditable="1" hide_new_button="1" colors="red: inactive_product == True">
187
<field name="line_number"/>
188
<field name="product_id"/>
189
<field name="account_id" />
190
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-stock_symbol-selection"
191
context="{'d_journal_id': parent.journal_id , 'd_partner_id': parent.partner_id, 'd_address_invoice_id':parent.address_invoice_id,'d_date_invoice': parent.date_invoice, 'd_register_posting_date': parent.register_posting_date, 'd_account_id': parent.account_id, 'd_partner_bank_id': parent.partner_bank_id, 'd_payment_term': parent.payment_term, 'd_name': parent.name, 'd_origine': parent.origin, 'd_address_contact_id': parent.address_contact_id, 'd_user_id': parent.user_id, 'd_comment': parent.comment}"
193
<field name="analytic_distribution_state_recap" attrs="{'invisible': [('is_allocatable', '=', False)]}"/>
194
<field name="analytic_distribution_state" invisible="1"/>
195
<field name="have_analytic_distribution_from_header" invisible="1"/>
196
<field name="quantity"/>
197
<field name="price_unit"/>
198
<field name="price_subtotal"/>
200
<field name="inactive_product" invisible="1" />
201
<field name="inactive_error" invisible="1" />
204
<group col="8" colspan="4">
205
<label string="" colspan="2"/>
206
<field name="have_donation_certificate" invisible="1"/>
207
<button name="button_donation_certificate" type="object" string="No Donation certificate" icon="terp-mail-replied" readonly="1" attrs="{'invisible': [('have_donation_certificate', '!=', False)]}"/>
208
<button name="button_donation_certificate" type="object" string="Donation certificate" icon="terp-mail-replied" attrs="{'invisible': [('have_donation_certificate', '=', False)]}"/>
209
<field name="state"/>
210
<field name="amount_total"/>
212
<group col="2" colspan="4" states="draft">
214
<button name="invoice_open" type="object" states="draft" string="Validate" icon="gtk-go-forward"/>
216
<group col="2" colspan="4" states="open,paid">
217
<button name="invoice_cancel" states="open" string="Cancel" icon="gtk-cancel" confirm="Do you confirm Donation received cancellation?"/>
218
<button name="%(account.account_invoices)d" string="Print Donation" type="action" icon="gtk-print" states="open,paid"/>
227
Intermission Voucher views
230
<!-- Intermission Voucher list -->
231
<record id="view_intermission_tree" model="ir.ui.view">
232
<field name="name">intermission.tree</field>
233
<field name="model">account.invoice</field>
234
<field name="type">tree</field>
235
<field name="priority">19</field>
236
<field name="arch" type="xml">
237
<tree string="Intermission Voucher" colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')" hide_new_button="1">
238
<field name="document_date" string="I/MI voucher date"/>
239
<field name="date_invoice"/>
240
<field name="number"/>
241
<field name="partner_id"/>
243
<field name="origin"/>
244
<field name="currency_id"/>
245
<field name="amount_total"/>
246
<field name="state"/>
251
<!-- Intermission Voucher Form -->
252
<record id="view_intermission_form" model="ir.ui.view">
253
<field name="name">inkind.donation.form</field>
254
<field name="model">account.invoice</field>
255
<field name="type">form</field>
256
<field name="priority">64</field>
257
<field name="arch" type="xml">
258
<form string="Intermission Voucher" hide_new_button="1" hide_duplicate_button="1">
259
<group colspan="4" col="8">
260
<field name="fake_journal_id" domain="[('is_current_instance','=',True)]" widget="selection"/>
261
<field name="number"/>
262
<field name="type" invisible="1"/>
263
<field name="is_intermission" invisible="1"/>
264
<field name="fake_currency_id"/>
266
<field string="Partner" name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id, False, is_intermission)" domain="[('partner_type', '=', 'intermission')]"/>
267
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id" string="Partner address"/>
269
<field name="document_date" string="I/MI voucher date"/>
270
<field name="date_invoice"/>
272
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-check" context="context" colspan="2" attrs="{'invisible': [('analytic_distribution_id', '=', False)]}"/>
273
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-emblem-important" context="context" colspan="2" attrs="{'invisible': [('analytic_distribution_id', '!=', False)]}"/>
274
<field name="analytic_distribution_id" invisible="1"/>
277
<notebook colspan="4">
278
<page string="Invoice">
279
<field invisible="1" domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" />
280
<field name="fake_account_id"/>
281
<field name="name" string="Reference"/>
283
<field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list">
284
<tree editable="top" string="Intermission Voucher Lines" hide_new_button="1" colors="red: inactive_product == True">
286
<field name="account_id" />
287
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-stock_symbol-selection"
288
context="{'d_journal_id': parent.journal_id , 'd_partner_id': parent.partner_id, 'd_address_invoice_id':parent.address_invoice_id,'d_date_invoice': parent.date_invoice, 'd_register_posting_date': parent.register_posting_date, 'd_account_id': parent.account_id, 'd_partner_bank_id': parent.partner_bank_id, 'd_payment_term': parent.payment_term, 'd_name': parent.name, 'd_origine': parent.origin, 'd_address_contact_id': parent.address_contact_id, 'd_user_id': parent.user_id, 'd_comment': parent.comment}"
290
<field name="analytic_distribution_state_recap" attrs="{'invisible': [('is_allocatable', '=', False)]}"/>
291
<field name="analytic_distribution_state" invisible="1"/>
292
<field name="have_analytic_distribution_from_header" invisible="1"/>
293
<field name="quantity"/>
294
<field name="uos_id" string="UOM"/>
295
<field name="price_unit"/>
296
<field name="price_subtotal"/>
297
<field name="inactive_product" invisible="1" />
298
<field name="inactive_error" invisible="1" />
301
<group col="8" colspan="4">
302
<label string="" colspan="3"/>
303
<field name="state"/>
304
<field name="amount_total"/>
306
<group col="2" colspan="4" states="draft">
308
<button name="invoice_open" type="object" states="draft" string="Validate" icon="gtk-go-forward"/>
310
<group col="2" colspan="4" states="open,paid">
312
<button name="%(account.account_invoices)d" string="Print Intermission Voucher" type="action" icon="gtk-print" states="open,paid"/>
315
<page string="Other Info">
316
<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"/>
318
<field name="date_due"/>
319
<field name="user_id"/>
321
<field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id" />
322
<field name="origin"/>
323
<field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id" />
324
<field name="move_id" />
325
<separator colspan="4" string="Additional Information"/>
326
<field colspan="4" name="comment" nolabel="1"/>
334
Delete some elements on customer invoices:
335
- fiscal_position field
336
- proforma button (invoice_proforma2)
339
- compute tax button (button_reset_taxes)
340
- amount untaxed field
343
<record id="inherit_invoice_form" model="ir.ui.view">
344
<field name="name">inherit.invoice.form</field>
345
<field name="model">account.invoice</field>
346
<field name="type">form</field>
347
<field name="inherit_id" ref="account.invoice_form"/>
348
<field name="priority">61</field>
349
<field name="arch" type="xml">
351
<xpath expr="/form" position="attributes">
352
<attribute name="string">Stock Transfer Voucher</attribute>
354
<field name="fiscal_position" position="replace"/>
355
<field name="payment_term" position="replace"/>
356
<field name="tax_line" position="replace"/>
357
<button name="button_reset_taxes" position="replace"/>
358
<button name="invoice_proforma2" position="replace"/>
359
<xpath expr="/form/notebook/page[@string='Invoice']/group[2]" position="replace">
360
<group col="8" colspan="4">
361
<label string="" colspan="3"/>
362
<field name="reconciled"/>
363
<field name="amount_total"/>
364
<label string="" colspan="3"/>
365
<field name="state"/>
366
<field name="residual"/>
367
<field name="is_debit_note" invisible="1"/>
369
<group col="8" colspan="4">
370
<button name="invoice_cancel" states="proforma2,open" string="Cancel" icon="gtk-cancel"/>
371
<button name="%(account.action_account_invoice_refund)d" type='action' string='Refund' states='open,paid' icon="gtk-execute"/>
372
<button name='%(account.action_account_state_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert" groups="base.group_no_one"/>
373
<button name="invoice_open" states="draft,proforma2" string="Validate" icon="gtk-go-forward" type="object"/>
374
<button name="%(account.account_invoices)d" string="Print Invoice" type="action" icon="gtk-print" states="open,paid,proforma,sale,proforma2"/>
377
<xpath expr="//page[@string='Payments']" position="replace">
387
<!-- Display debit note list (only invoice that have 'is_debit_note' to True)-->
388
<record id="action_debit_note" model="ir.actions.act_window">
389
<field name="name">Debit Note</field>
390
<field name="res_model">account.invoice</field>
391
<field name="view_type">form</field>
392
<field name="view_mode">tree,form,calendar,graph</field>
393
<field eval="False" name="view_id"/>
394
<field name="domain">[('type','=','out_invoice'), ('is_debit_note', '!=', False), ('is_inkind_donation', '=', False)]</field>
395
<field name="context">{'type':'out_invoice', 'journal_type': 'sale', 'is_debit_note': True}</field>
396
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
399
<!-- Link between previous action and Debit Note tree view -->
400
<record model="ir.actions.act_window.view" id="act_debit_note_tree">
401
<field name="sequence" eval="5"/>
402
<field name="view_mode">tree</field>
403
<field name="view_id" ref="view_debit_note_tree"/>
404
<field name="act_window_id" ref="action_debit_note"/>
407
<!-- Link between action and Debit Note form view -->
408
<record model="ir.actions.act_window.view" id="act_debit_note_form">
409
<field name="sequence" eval="10"/>
410
<field name="view_mode">form</field>
411
<field name="view_id" ref="view_debit_note_form"/>
412
<field name="act_window_id" ref="action_debit_note"/>
415
<!-- Donation search view filter -->
416
<record id="view_account_invoice_filter_donation" model="ir.ui.view">
417
<field name="name">view.account.invoice.filter.donation</field>
418
<field name="model">account.invoice</field>
419
<field name="type">search</field>
420
<field name="priority">20</field>
421
<field name="arch" type="xml">
422
<search string="Search Donation">
423
<group col="10" colspan="4">
424
<filter name="draft" icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Invoices"/>
425
<filter name="open" icon="terp-camera_test" string="Open" domain="[('state','=','open')]" help="Open Invoices"/>
426
<filter name="cancelled" icon="terp-dialog-close" string="Cancelled" domain="[('state','=','cancel')]" help="Cancelled Invoices"/>
427
<separator orientation="vertical"/>
428
<field name="number"/>
429
<field name="partner_id"/>
430
<field name="origin"/>
431
<field name="amount_total"/>
434
<group col="10" colspan="4">
435
<field name="journal_id" widget="selection" select='1'/>
436
<field name="period_id" select='1' string="Period"/>
439
<group expand="0" string="Group By...">
440
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
441
<separator orientation="vertical"/>
442
<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
443
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
444
<separator orientation="vertical"/>
445
<filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
446
<filter string="Posting Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_invoice'}"/>
447
<filter string="Due Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_due'}"/>
453
<!-- Display in-kind donation list (only invoice that have 'is_inkind_donation' to True)-->
454
<record id="action_inkind_donation" model="ir.actions.act_window">
455
<field name="name">Donation</field>
456
<field name="res_model">account.invoice</field>
457
<field name="view_type">form</field>
458
<field name="view_mode">tree,form,calendar,graph</field>
459
<field eval="False" name="view_id"/>
460
<field name="domain">[('type','=','in_invoice'), ('is_debit_note', '=', False), ('is_inkind_donation', '=', True)]</field>
461
<field name="context">{'type':'in_invoice', 'journal_type': 'inkind'}</field>
462
<field name="search_view_id" ref="view_account_invoice_filter_donation"/>
465
<!-- Link between previous action and In-kind Donation tree view -->
466
<record model="ir.actions.act_window.view" id="act_inkind_donation_tree">
467
<field name="sequence" eval="6"/>
468
<field name="view_mode">tree</field>
469
<field name="view_id" ref="view_inkind_donation_tree"/>
470
<field name="act_window_id" ref="action_inkind_donation"/>
473
<!-- Link between action and In-kind Donation form view -->
474
<record model="ir.actions.act_window.view" id="act_inkind_donation_form">
475
<field name="sequence" eval="11"/>
476
<field name="view_mode">form</field>
477
<field name="view_id" ref="view_inkind_donation_form"/>
478
<field name="act_window_id" ref="action_inkind_donation"/>
481
<!-- Display Intermission voucher OUT -->
482
<record id="action_intermission_out" model="ir.actions.act_window">
483
<field name="name">Intermission Voucher OUT</field>
484
<field name="res_model">account.invoice</field>
485
<field name="view_type">form</field>
486
<field name="view_mode">tree,form,calendar,graph</field>
487
<field eval="False" name="view_id"/>
488
<field name="domain">[('type','=','out_invoice'), ('is_debit_note', '=', False), ('is_inkind_donation', '=', False), ('is_intermission', '=', True)]</field>
489
<field name="context">{'type':'out_invoice', 'journal_type': 'intermission'}</field>
490
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
493
<!-- Link between previous action and Intermission tree view -->
494
<record model="ir.actions.act_window.view" id="act_intermission_tree_out">
495
<field name="sequence" eval="5"/>
496
<field name="view_mode">tree</field>
497
<field name="view_id" ref="view_intermission_tree"/>
498
<field name="act_window_id" ref="action_intermission_out"/>
501
<!-- Link between action and Intermission form view -->
502
<record model="ir.actions.act_window.view" id="act_intermission_form_out">
503
<field name="sequence" eval="10"/>
504
<field name="view_mode">form</field>
505
<field name="view_id" ref="view_intermission_form"/>
506
<field name="act_window_id" ref="action_intermission_out"/>
509
<!-- Display Intermission voucher IN -->
510
<record id="action_intermission_in" model="ir.actions.act_window">
511
<field name="name">Intermission Voucher IN</field>
512
<field name="res_model">account.invoice</field>
513
<field name="view_type">form</field>
514
<field name="view_mode">tree,form,calendar,graph</field>
515
<field name="view_id" ref="view_intermission_form"/>
516
<field name="domain">[('type','=','in_invoice'), ('is_debit_note', '=', False), ('is_inkind_donation', '=', False), ('is_intermission', '=', True)]</field>
517
<field name="context">{'type':'in_invoice', 'journal_type': 'intermission'}</field>
518
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
521
<!-- Link between previous action and Intermission tree view -->
522
<record model="ir.actions.act_window.view" id="act_intermission_tree_in">
523
<field name="sequence" eval="5"/>
524
<field name="view_mode">tree</field>
525
<field name="view_id" ref="view_intermission_tree"/>
526
<field name="act_window_id" ref="action_intermission_in"/>
529
<!-- Link between action and Intermission form view -->
530
<record model="ir.actions.act_window.view" id="act_intermission_form_in">
531
<field name="sequence" eval="10"/>
532
<field name="view_mode">form</field>
533
<field name="view_id" ref="view_intermission_form"/>
534
<field name="act_window_id" ref="action_intermission_in"/>
537
<!-- Fix customer invoice display with a bypass on 'is_debit_note' set to True -->
538
<record id="account.action_invoice_tree1" model="ir.actions.act_window">
539
<field name="name">Customer Invoices</field>
540
<field name="res_model">account.invoice</field>
541
<field name="view_type">form</field>
542
<field name="view_mode">tree,form,calendar,graph</field>
543
<field eval="False" name="view_id"/>
544
<field name="domain">[('type','=','out_invoice'), ('is_debit_note', '=', False), ('is_inkind_donation', '=', False), ('is_intermission', '=', False)]</field>
545
<field name="context">{'type':'out_invoice', 'journal_type': 'sale'}</field>
546
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
547
<field name="help">With Customer Invoices you can create and manage sales invoices issued to your customers. OpenERP can also generate draft invoices automatically from sales orders or deliveries. You should only confirm them before sending them to your customers.</field>
550
<!-- Fix supplier invoice display with a bypass on 'is_inkind_donation' set to True -->
551
<record id="account.action_invoice_tree2" model="ir.actions.act_window">
552
<field name="name">Supplier Invoices</field>
553
<field name="res_model">account.invoice</field>
554
<field name="view_type">form</field>
555
<field name="view_mode">tree,form,calendar,graph</field>
556
<field eval="False" name="view_id"/>
557
<field name="domain">[('type','=','in_invoice'), ('register_line_ids', '=', False), ('is_inkind_donation', '=', False), ('is_debit_note', "=", False), ('is_intermission', '=', False)]</field>
558
<field name="context">{'type':'in_invoice', 'journal_type': 'purchase'}</field>
559
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
560
<field name="help">With Supplier Invoices you can enter and manage invoices issued by your suppliers.
561
OpenERP can also generate draft invoices automatically from purchase orders or receipts. This way, you can control the invoice
562
from your supplier according to what you purchased or received.</field>
569
<!-- Debit Note Menu in "Customer Invoices" -->
570
<menuitem action="action_debit_note" id="menu_action_debit_note" parent="account.menu_finance_receivables" sequence="10"/>
572
<!-- In-kind Donation Menu in "Supplier Invoices" -->
573
<menuitem action="action_inkind_donation" id="menu_action_inkind_donation" parent="account.menu_finance_payables" sequence="11"/>
575
<!-- Intermission Voucher OUT in "Customer Invoices" -->
576
<menuitem action="action_intermission_out" id="menu_action_intermission_out" parent="account.menu_finance_receivables" sequence="10"/>
578
<!-- Intermission Voucher IN in "Supplier Invoices" -->
579
<menuitem action="action_intermission_in" id="menu_action_intermission_in" parent="account.menu_finance_payables" sequence="12"/>
582
Account invoice report redefinition
587
id="account.account_invoices"
588
model="account.invoice"
589
name="account.invoice2"
590
rml="account_msf/report/account_print_invoice.rml"
591
string="Print report"
592
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))"