58
58
<notebook colspan="4">
59
59
<page string="Invoice">
60
<field domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" />
60
<field domain="[('company_id', '=', company_id), ('restricted_area', '=', 'out_invoice')]" name="account_id" />
61
61
<field name="name"/>
62
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">
63
<tree editable="top" string="Invoice Line" noteditable="1" hide_new_button="1">
64
64
<field name="name"/>
65
<field name="account_id" />
65
<field name="account_id" domain="[('restricted_area', '=', 'invoice_lines')]"/>
66
66
<field name="quantity"/>
67
67
<field name="uos_id" string="UoM"/>
68
68
<field name="price_unit"/>
170
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
171
<field name="analytic_distribution_id" invisible="1"/>
172
172
<group colspan="2"/>
173
<field name="company_id" invisible="1"/>
174
175
<notebook colspan="4">
175
176
<page string="Invoice">
176
<field invisible="1" domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" />
177
<field name="fake_account_id"/>
177
<field invisible="1" domain="[('company_id', '=', company_id), ('restricted_area', '=', 'donation_header')]" name="account_id"/>
178
<field name="fake_account_id" domain="[('company_id', '=', company_id), ('restricted_area', '=', 'donation_header')]"/>
178
179
<field name="reference_type" nolabel="1" size="0"/>
179
180
<field name="reference" nolabel="1"/>
180
181
<field name="name"/>
183
184
<label string="" colspan="2"/>
184
185
<field name="check_total" required="2"/>
185
186
<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
<tree editable="top" string="Donation Lines" noteditable="1" hide_new_button="1">
187
188
<field name="line_number"/>
189
<field name="is_corrected" invisible="1"/>
190
<button name="button_open_analytic_lines" string="Have been corrected" type="object" icon="terp-mail-" attrs="{'invisible': [('is_corrected', '=', False)]}"/>
188
191
<field name="product_id"/>
189
<field name="account_id" />
192
<field name="account_id" domain="[('restricted_area', '=', 'donation_lines')]"/>
190
193
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-stock_symbol-selection"
191
194
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}"
234
237
<field name="type">tree</field>
235
238
<field name="priority">19</field>
236
239
<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">
240
<tree string="Intermission Voucher" colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')">
238
241
<field name="document_date" string="I/MI voucher date"/>
239
242
<field name="date_invoice"/>
240
243
<field name="number"/>
255
258
<field name="type">form</field>
256
259
<field name="priority">64</field>
257
260
<field name="arch" type="xml">
258
<form string="Intermission Voucher" hide_new_button="1" hide_duplicate_button="1">
261
<form string="Intermission Voucher" hide_duplicate_button="1">
259
262
<group colspan="4" col="8">
260
<field name="fake_journal_id" domain="[('is_current_instance','=',True)]" widget="selection"/>
263
<field name="fake_journal_id" domain="[('is_current_instance','=',True)]" widget="selection" />
261
264
<field name="number"/>
262
265
<field name="type" invisible="1"/>
263
266
<field name="is_intermission" invisible="1"/>
277
280
<notebook colspan="4">
278
281
<page string="Invoice">
279
<field invisible="1" domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" />
280
<field name="fake_account_id"/>
282
<field invisible="1" domain="[('company_id', '=', company_id), ('restricted_area', '=', 'intermission_header')]" name="account_id" />
283
<field name="fake_account_id" domain="[('restricted_area', '=', 'intermission_header')]"/>
281
284
<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 colspan="4" name="invoice_line" nolabel="1" widget="one2many_list" context="{'is_intermission': True}">
287
<tree string="Intermission Voucher Lines">
288
<field name="is_corrected" invisible="1"/>
289
<button name="button_open_analytic_lines" string="Have been corrected" type="object" icon="terp-mail-" attrs="{'invisible': [('is_corrected', '=', False)]}"/>
285
290
<field name="name"/>
286
<field name="account_id" />
291
<field name="account_id" domain="[('restricted_area', '=', 'intermission_lines')]"/>
287
292
<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}"
293
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, 'is_intermission': True}"
290
295
<field name="analytic_distribution_state_recap" attrs="{'invisible': [('is_allocatable', '=', False)]}"/>
291
296
<field name="analytic_distribution_state" invisible="1"/>
292
297
<field name="have_analytic_distribution_from_header" invisible="1"/>
293
298
<field name="quantity"/>
294
<field name="uos_id" string="UOM"/>
299
<field name="uos_id" string="UOM" invisible="1" />
295
300
<field name="price_unit"/>
296
301
<field name="price_subtotal"/>
297
302
<field name="inactive_product" invisible="1" />
298
303
<field name="inactive_error" invisible="1" />
305
<form string="Intermission Voucher Lines">
309
<field name="account_id" domain="[('restricted_area', '=', 'intermission_lines')]"/>
310
<field name="quantity"/>
311
<field name="uos_id" string="UOM" invisible="1"/>
312
<field name="price_unit"/>
313
<field name="price_subtotal"/>
315
<page string="Notes">
316
<field name="note" nolabel="1" colspan="4"/>
301
321
<group col="8" colspan="4">
302
322
<label string="" colspan="3"/>
351
373
<xpath expr="/form" position="attributes">
352
374
<attribute name="string">Stock Transfer Voucher</attribute>
376
<xpath expr="/form/notebook/page[@string='Invoice']/field[@name='account_id']" position="attributes">
377
<attribute name="domain">[('company_id', '=', company_id), ('restricted_area', '=', 'out_invoice')]</attribute>
354
379
<field name="fiscal_position" position="replace"/>
355
380
<field name="payment_term" position="replace"/>
356
381
<field name="tax_line" position="replace"/>
486
511
<field name="view_mode">tree,form,calendar,graph</field>
487
512
<field eval="False" name="view_id"/>
488
513
<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>
514
<field name="context">{'type':'out_invoice', 'journal_type': 'intermission', 'is_intermission': True, 'intermission_type': 'out'}</field>
490
515
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
514
539
<field name="view_mode">tree,form,calendar,graph</field>
515
540
<field name="view_id" ref="view_intermission_form"/>
516
541
<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>
542
<field name="context">{'type':'in_invoice', 'journal_type': 'intermission', 'is_intermission': True, 'intermission_type': 'in'}</field>
518
543
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
554
579
<field name="view_type">form</field>
555
580
<field name="view_mode">tree,form,calendar,graph</field>
556
581
<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>
582
<field name="domain">[('type','=','in_invoice'), ('is_direct_invoice', '=', False), ('is_inkind_donation', '=', False), ('is_debit_note', "=", False), ('is_intermission', '=', False)]</field>
558
583
<field name="context">{'type':'in_invoice', 'journal_type': 'purchase'}</field>
559
584
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
560
585
<field name="help">With Supplier Invoices you can enter and manage invoices issued by your suppliers.