2010-08-18 20:20:43 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="view_vendor_payment_form">
|
|
|
|
<field name="name">account.voucher.payment.form</field>
|
|
|
|
<field name="model">account.voucher</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Bill Payment">
|
|
|
|
<group col="6" colspan="4">
|
2010-08-20 11:40:55 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_id(partner_id, type, journal_id)"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
<field name="name" colspan="4"/>
|
2010-08-18 23:43:52 +00:00
|
|
|
<field name="journal_id" domain="[('type','in',['bank', 'cash'])]" widget="selection" select="1" on_change="onchange_journal(journal_id,type)"/>
|
|
|
|
<field name="account_id" domain="[('type','=','other')]" widget="selection" on_change="onchange_account(account_id)" readonly="1"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
<field name="number"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Payment Information">
|
2010-08-23 11:09:08 +00:00
|
|
|
<field name="payment_ids" on_change="onchange_price(payment_ids, False, False)" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="180">
|
2010-08-20 11:40:55 +00:00
|
|
|
<tree string="Payment Lines" editable="bottom">
|
2010-08-18 20:20:43 +00:00
|
|
|
<field name="ref" on_change="onchange_partner(parent.partner_id,type,parent.type, parent.currency_id)"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="type" on_change="onchange_type(parent.partner_id,type,parent.type, parent.currency_id)"/>
|
|
|
|
<field name="account_analytic_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<group col="2" colspan="3">
|
|
|
|
<separator string="Narration" colspan="2"/>
|
|
|
|
<field name="narration" colspan="2" nolabel="1"/>
|
|
|
|
</group>
|
|
|
|
<group col="2" colspan="1">
|
|
|
|
<separator string="Other Information" colspan="2"/>
|
|
|
|
<field name="reference" select="1"/>
|
|
|
|
<field name="date" select="1" on_change="onchange_date(date)"/>
|
|
|
|
<field name="currency_id" select="1" attrs="{'readonly':[('type','in',['sale', 'purchase'])]}"/>
|
|
|
|
<field name="type" on_change="onchange_journal(journal_id,type)"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page string="Journal Items">
|
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
|
|
|
|
<field name="period_id"/>
|
|
|
|
<field name="audit"/>
|
|
|
|
</group>
|
|
|
|
<separator string="Journal Items" colspan="4"/>
|
|
|
|
<field name="move_ids" colspan="4" nolabel="1" readonly="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
<group col="10" colspan="4">
|
|
|
|
<field name="state"/>
|
|
|
|
<button name="proforma_voucher" string="Create" states="draft" icon="terp-document-new"/>
|
|
|
|
<button name="recheck_voucher" string="Approve" states="recheck" icon="terp-check"/>
|
|
|
|
<button name="cancel_voucher" string="Cancel" states="draft,proforma,recheck" icon="gtk-cancel"/>
|
|
|
|
<button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
|
2010-08-20 19:05:02 +00:00
|
|
|
<button name="%(action_view_account_voucher_unreconcile)d" string="Unreconcile" type="action" states="posted" icon="terp-stock_effects-object-colorize"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_vendor_payment" model="ir.actions.act_window">
|
|
|
|
<field name="name">Vendor Payment</field>
|
|
|
|
<field name="res_model">account.voucher.open</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
|
|
|
|
<field name="context">{'journal_type':'bank', 'type':'payment'}</field>
|
|
|
|
<field name="view_id" ref="account_open_vouchers_view"/>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
2010-08-18 23:59:00 +00:00
|
|
|
<menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="16"
|
2010-08-18 20:20:43 +00:00
|
|
|
id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_vendor_receipt_form">
|
|
|
|
<field name="name">account.voucher.receipt.form</field>
|
|
|
|
<field name="model">account.voucher</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Sales Payment">
|
|
|
|
<group col="6" colspan="4">
|
2010-08-20 11:40:55 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_id(partner_id, type, journal_id)" string="Customer"/>
|
2010-08-19 07:57:59 +00:00
|
|
|
<field name="journal_id"
|
|
|
|
domain="[('type','in',['bank', 'cash'])]"
|
|
|
|
widget="selection" select="1"
|
|
|
|
on_change="onchange_journal(journal_id,type)"
|
|
|
|
string="Payment Method"/>
|
2010-08-20 13:47:29 +00:00
|
|
|
<field name="amount"/>
|
2010-08-19 07:57:59 +00:00
|
|
|
<field name="reference" select="1" string="Payment Ref"/>
|
2010-08-23 11:09:08 +00:00
|
|
|
<field name="name" colspan="4"/>
|
2010-08-19 07:57:59 +00:00
|
|
|
<field name="account_id"
|
|
|
|
domain="[('type','=','other')]"
|
|
|
|
widget="selection"
|
|
|
|
on_change="onchange_account(account_id)"
|
2010-08-20 11:40:55 +00:00
|
|
|
invisible="True"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Payment Information">
|
2010-08-23 11:09:08 +00:00
|
|
|
<!-- <field name="payment_ids" on_change="onchange_price(payment_ids, 0.0, False)" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="180">-->
|
2010-08-25 16:42:19 +00:00
|
|
|
<field name="payment_ids" on_change="onchange_price(payment_ids, 0.0, False)" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="180">
|
|
|
|
<tree string="Invoices and outstanding payments" editable="bottom">
|
|
|
|
<field name="move_line_id" context="{'journal_id':parent.journal_id, 'type':parent.type, 'partner_id':parent.partner_id}" on_change="onchange_move_line_id(move_line_id)" domain="[('account_id.type','=','receivable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id), ('debit','>',0)]"/>
|
|
|
|
<field name="account_id" domain="[('type','=','receivable')]"/>
|
|
|
|
<field name="date_original"/>
|
|
|
|
<field name="date_due"/>
|
|
|
|
<field name="amount_original"/>
|
|
|
|
<field name="amount_unreconciled" sum="Open Balance"/>
|
|
|
|
<field name="amount" sum="Payment"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<separator string="Previous Unreconcile balance" colspan="4"/>
|
|
|
|
<field name="pre_line"/>
|
|
|
|
<field name="line_cr_ids" colspan="4" nolabel="1" readonly="1" attrs="{'invisible': [('pre_line','=',False)]}">
|
|
|
|
<tree string="Credits" editable="bottom">
|
2010-08-20 18:57:46 +00:00
|
|
|
<field name="move_line_id" context="{'journal_id':parent.journal_id, 'type':parent.type, 'partner_id':parent.partner_id}" on_change="onchange_move_line_id(move_line_id)" domain="[('account_id.type','=','receivable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id), ('debit','>',0)]"/>
|
2010-08-20 13:47:29 +00:00
|
|
|
<field name="account_id" domain="[('type','=','receivable')]"/>
|
2010-08-19 07:57:59 +00:00
|
|
|
<field name="date_original"/>
|
|
|
|
<field name="date_due"/>
|
|
|
|
<field name="amount_original"/>
|
|
|
|
<field name="amount_unreconciled" sum="Open Balance"/>
|
|
|
|
<field name="amount" sum="Payment"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<group col="2" colspan="3">
|
2010-08-19 07:57:59 +00:00
|
|
|
<separator string="Internal Notes" colspan="2"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
<field name="narration" colspan="2" nolabel="1"/>
|
|
|
|
</group>
|
|
|
|
<group col="2" colspan="1">
|
|
|
|
<separator string="Other Information" colspan="2"/>
|
|
|
|
<field name="date" select="1" on_change="onchange_date(date)"/>
|
2010-08-19 07:57:59 +00:00
|
|
|
<field name="currency_id" select="1"
|
|
|
|
attrs="{'readonly':[('type','in',['sale', 'purchase'])]}"/>
|
|
|
|
<field name="number"/>
|
|
|
|
<field name="type" on_change="onchange_journal(journal_id,type)" invisible="1"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
2010-08-19 07:57:59 +00:00
|
|
|
<page string="Journal Items" groups="base.group_extended">
|
2010-08-18 20:20:43 +00:00
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
|
|
|
|
<field name="period_id"/>
|
|
|
|
<field name="audit"/>
|
|
|
|
</group>
|
|
|
|
<separator string="Journal Items" colspan="4"/>
|
|
|
|
<field name="move_ids" colspan="4" nolabel="1" readonly="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
<group col="10" colspan="4">
|
|
|
|
<field name="state"/>
|
|
|
|
<button name="proforma_voucher" string="Create" states="draft" icon="terp-document-new"/>
|
|
|
|
<button name="recheck_voucher" string="Approve" states="recheck" icon="terp-check"/>
|
|
|
|
<button name="cancel_voucher" string="Cancel" states="draft,proforma,recheck" icon="gtk-cancel"/>
|
|
|
|
<button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
|
2010-08-20 19:05:02 +00:00
|
|
|
<button name="%(action_view_account_voucher_unreconcile)d" string="Unreconcile" type="action" states="posted" icon="terp-stock_effects-object-colorize"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_vendor_receipt" model="ir.actions.act_window">
|
|
|
|
<field name="name">Sales Payment</field>
|
|
|
|
<field name="res_model">account.voucher.open</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
|
|
|
|
<field name="context">{'journal_type':'bank', 'type':'receipt'}</field>
|
|
|
|
<field name="view_id" ref="account_open_vouchers_view"/>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
2010-08-18 23:59:00 +00:00
|
|
|
<menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="16"
|
2010-08-18 20:20:43 +00:00
|
|
|
id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>
|
2010-08-18 20:39:09 +00:00
|
|
|
|
|
|
|
<record id="action_cheque_pay" model="ir.actions.act_window">
|
|
|
|
<field name="name">Cheques</field>
|
|
|
|
<field name="res_model">account.voucher.open</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="domain">[('journal_id.type', 'in', ['bank']), ('type','=','payment')]</field>
|
|
|
|
<field name="context">{'journal_type':'bank', 'type':'payment'}</field>
|
|
|
|
<field name="view_id" ref="account_open_vouchers_view"/>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
|
|
|
|
2010-08-18 23:59:00 +00:00
|
|
|
<menuitem action="action_cheque_pay" icon="STOCK_JUSTIFY_FILL" sequence="16"
|
2010-08-18 20:39:09 +00:00
|
|
|
id="menu_action_cheque_pay" parent="account.menu_finance_bank_and_cash"/>
|
2010-08-18 20:20:43 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|