1 <?xml version="1.0" encoding="UTF-8"?>
4 <record model="ir.ui.view" id="view_vendor_payment_form">
5 <field name="name">account.voucher.payment.form</field>
6 <field name="model">account.voucher</field>
7 <field name="type">form</field>
8 <field name="arch" type="xml">
9 <form string="Bill Payment">
10 <group col="6" colspan="4">
11 <field name="partner_id" on_change="onchange_partner_id(partner_id, type)"/>
12 <field name="name" colspan="4"/>
13 <field name="journal_id" domain="[('type','in',['bank', 'cash'])]" widget="selection" select="1" on_change="onchange_journal(journal_id,type)"/>
14 <field name="account_id" domain="[('type','=','other')]" widget="selection" on_change="onchange_account(account_id)" readonly="1"/>
15 <field name="number"/>
17 <notebook colspan="4">
18 <page string="Payment Information">
19 <field name="payment_ids" colspan="4" nolabel="1" height="180">
20 <tree string="Payment Lines" editable="top">
21 <field name="ref" on_change="onchange_partner(parent.partner_id,type,parent.type, parent.currency_id)"/>
22 <field name="amount"/>
23 <field name="account_id"/>
24 <field name="type" on_change="onchange_type(parent.partner_id,type,parent.type, parent.currency_id)"/>
25 <field name="account_analytic_id"/>
28 <group col="2" colspan="3">
29 <separator string="Narration" colspan="2"/>
30 <field name="narration" colspan="2" nolabel="1"/>
32 <group col="2" colspan="1">
33 <separator string="Other Information" colspan="2"/>
34 <field name="reference" select="1"/>
35 <field name="date" select="1" on_change="onchange_date(date)"/>
36 <field name="currency_id" select="1" attrs="{'readonly':[('type','in',['sale', 'purchase'])]}"/>
37 <field name="type" on_change="onchange_journal(journal_id,type)"/>
40 <page string="Journal Items">
41 <group col="6" colspan="4">
42 <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
43 <field name="period_id"/>
46 <separator string="Journal Items" colspan="4"/>
47 <field name="move_ids" colspan="4" nolabel="1" readonly="1"/>
50 <group col="10" colspan="4">
52 <button name="proforma_voucher" string="Create" states="draft" icon="terp-document-new"/>
53 <button name="recheck_voucher" string="Approve" states="recheck" icon="terp-check"/>
54 <button name="cancel_voucher" string="Cancel" states="draft,proforma,recheck" icon="gtk-cancel"/>
55 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
61 <record id="action_vendor_payment" model="ir.actions.act_window">
62 <field name="name">Vendor Payment</field>
63 <field name="res_model">account.voucher.open</field>
64 <field name="view_type">form</field>
65 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
66 <field name="context">{'journal_type':'bank', 'type':'payment'}</field>
67 <field name="view_id" ref="account_open_vouchers_view"/>
68 <field name="target">new</field>
70 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="16"
71 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
73 <record model="ir.ui.view" id="view_vendor_receipt_form">
74 <field name="name">account.voucher.receipt.form</field>
75 <field name="model">account.voucher</field>
76 <field name="type">form</field>
77 <field name="arch" type="xml">
78 <form string="Sales Payment">
79 <group col="6" colspan="4">
80 <field name="partner_id" on_change="onchange_partner_id(partner_id, type)" string="Customer"/>
81 <field name="journal_id"
82 domain="[('type','in',['bank', 'cash'])]"
83 widget="selection" select="1"
84 on_change="onchange_journal(journal_id,type)"
85 string="Payment Method"/>
87 <field name="amount" readonly="0"/>
88 <field name="reference" select="1" string="Payment Ref"/>
89 <field name="name" colspan="4"/>
90 <field name="period_id" invisible="1"/>
91 <field name="account_id"
92 domain="[('type','=','other')]"
94 on_change="onchange_account(account_id)"
98 <notebook colspan="4">
99 <page string="Payment Information">
100 <field name="payment_ids" colspan="4" nolabel="1" height="180">
101 <tree string="Payment Lines" editable="top">
102 <field name="move_line_id"/>
103 <field name="account_id"/>
104 <field name="date_original"/>
105 <field name="date_due"/>
106 <field name="amount_original"/>
107 <field name="amount_unreconciled" sum="Open Balance"/>
108 <field name="amount" sum="Payment"/>
111 <group col="2" colspan="3">
112 <separator string="Internal Notes" colspan="2"/>
113 <field name="narration" colspan="2" nolabel="1"/>
115 <group col="2" colspan="1">
116 <separator string="Other Information" colspan="2"/>
117 <field name="date" select="1" on_change="onchange_date(date)"/>
118 <field name="currency_id" select="1"
119 attrs="{'readonly':[('type','in',['sale', 'purchase'])]}"/>
120 <field name="number"/>
121 <field name="type" on_change="onchange_journal(journal_id,type)" invisible="1"/>
124 <page string="Journal Items" groups="base.group_extended">
125 <group col="6" colspan="4">
126 <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
127 <field name="period_id"/>
128 <field name="audit"/>
130 <separator string="Journal Items" colspan="4"/>
131 <field name="move_ids" colspan="4" nolabel="1" readonly="1"/>
134 <group col="10" colspan="4">
135 <field name="state"/>
136 <button name="proforma_voucher" string="Create" states="draft" icon="terp-document-new"/>
137 <button name="recheck_voucher" string="Approve" states="recheck" icon="terp-check"/>
138 <button name="cancel_voucher" string="Cancel" states="draft,proforma,recheck" icon="gtk-cancel"/>
139 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
145 <record id="action_vendor_receipt" model="ir.actions.act_window">
146 <field name="name">Sales Payment</field>
147 <field name="res_model">account.voucher.open</field>
148 <field name="view_type">form</field>
149 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
150 <field name="context">{'journal_type':'bank', 'type':'receipt'}</field>
151 <field name="view_id" ref="account_open_vouchers_view"/>
152 <field name="target">new</field>
154 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="16"
155 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>
157 <record id="action_cheque_pay" model="ir.actions.act_window">
158 <field name="name">Cheques</field>
159 <field name="res_model">account.voucher.open</field>
160 <field name="view_type">form</field>
161 <field name="domain">[('journal_id.type', 'in', ['bank']), ('type','=','payment')]</field>
162 <field name="context">{'journal_type':'bank', 'type':'payment'}</field>
163 <field name="view_id" ref="account_open_vouchers_view"/>
164 <field name="target">new</field>
167 <menuitem action="action_cheque_pay" icon="STOCK_JUSTIFY_FILL" sequence="16"
168 id="menu_action_cheque_pay" parent="account.menu_finance_bank_and_cash"/>