65 lines
3.0 KiB
XML
65 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="view_account_invoice_pay" model="ir.ui.view">
|
|
<field name="name">account.invoice.pay.form</field>
|
|
<field name="model">account.invoice.pay</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Pay invoice">
|
|
<group colspan="4" >
|
|
<field name="amount"/>
|
|
<newline/>
|
|
<field name="name"/>
|
|
<field name="date"/>
|
|
<field name="journal_id" widget="selection"/>
|
|
<field name="period_id" widget="selection"/>
|
|
</group>
|
|
<group colspan="4" col="6">
|
|
<label string ="" colspan="2"/>
|
|
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
|
<button icon="gtk-execute" string="Partial Payment" name="pay_and_reconcile" type="object"/>
|
|
<button icon="gtk-execute" string="Full Payment" name="wo_check" type="object"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_account_invoice_pay" model="ir.actions.act_window">
|
|
<field name="name">Pay Invoice</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">account.invoice.pay</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="view_account_invoice_pay"/>
|
|
<field name="context">{'record_id' : active_id}</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
|
|
<record id="view_account_invoice_pay_writeoff" model="ir.ui.view">
|
|
<field name="name">account.invoice.pay.writeoff.form</field>
|
|
<field name="model">account.invoice.pay.writeoff</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Information addendum">
|
|
<group colspan="4" >
|
|
<separator string="Write-Off Move" colspan="4"/>
|
|
<field name="writeoff_journal_id"/>
|
|
<field name="writeoff_acc_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
<field name="comment"/>
|
|
<separator string="Analytic" colspan="4"/>
|
|
<field name="analytic_id"/>
|
|
</group>
|
|
<group colspan="4" col="6">
|
|
<label string ="" colspan="2"/>
|
|
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
|
<button icon="gtk-execute" string="Pay and reconcile" name="pay_and_reconcile_writeoff" type="object"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|