1
<?xml version="1.0" encoding="utf-8"?>
6
<record id="select_account_cashPayment" model="ir.ui.view">
7
<field name="name">Search Cash Payment</field>
8
<field name="model">account.cash_payment</field>
9
<field name="arch" type="xml">
10
<search string="Search Cash Payment">
12
<filter icon="terp-document-new" name="draft" string="Draft" domain="[('state','=','draft')]"/>
13
<filter icon="gtk-apply" name="confirm" string="Waiting" domain="[('state','=','confirm')]"/>
14
<filter icon="gtk-media-pause" name="approve" string="Ready" domain="[('state','=','approve')]"/>
15
<filter icon="gtk-media-forward" name="proforma" string="Proforma" domain="[('state','=','proforma')]"/>
16
<filter icon="gtk-media-next" name="post" string="Posted" domain="[('state','=','posted')]"/>
17
<separator orientation="vertical"/>
18
<filter icon="gtk-cancel" name="cancel" string="Cancelled" domain="[('state','=','cancel')]"/>
20
<field name="number" string="# Voucher"/>
21
<field name="name" string="Description"/>
22
<field name="journal_id" widget="selection" domain="[('type','=','bank')]"/>
24
<field name="date" string="Date From" filter_domain="[('date','>=',self)]"/>
25
<field name="date" string="Date To" filter_domain="[('date','>=',self)]"/>
26
<field name="period_id"/>
29
<group expand="0" string="Group By...">
30
<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
31
<filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
32
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
40
<record model="ir.ui.view" id="form_account_cashPayment">
41
<field name="name">Form Cash Payment</field>
42
<field name="model">account.cash_payment</field>
43
<field name="arch" type="xml">
44
<form string="Cash Payment" version="7.0">
46
<button name="button_confirm" type="workflow" string="Confirm" colspan="2" class="oe_highlight" states="draft" groups="ar_account.group_account_cashPaymentValidator"/>
47
<button name="button_approve" type="workflow" string="Approve" colspan="2" class="oe_highlight" states="confirm" groups="ar_account.group_account_cashPaymentValidator"/>
48
<button name="button_proforma" type="workflow" string="Proforma" colspan="2" class="oe_highlight" states="approve" groups="ar_account.group_account_cashPaymentUser"/>
49
<button name="button_posted" type="workflow" string="Posted" colspan="2" class="oe_highlight" states="proforma,approve" groups="ar_account.group_account_cashPaymentPost"/>
50
<button name="button_cancel" type="workflow" string="Cancel" colspan="2" states="draft,confirm,proforma,approve" groups="ar_account.group_account_cashPaymentCancel"/>
51
<button name="button_action_cancel" type="object" string="Cancel" colspan="2" states="posted" groups="ar_account.group_account_cashPaymentCancel"/>
52
<button name="button_action_set_to_draft" type="object" string="Set To Draft" colspan="2" states="cancel" groups="ar_account.group_account_cashPaymentCancel"/>
53
<field name="state" widget="statusbar" statusbar_visible="draft,confirm,approve,proforma,posted" statusbar_colors='{"posted":"green","cancel":"red"}'/>
57
<label string="Cash Payment"/>
59
<group colspan="4" col="2" name="group_1" >
60
<group colspan="1" col="2" name="group_1_1">
61
<field name="number" string="# Voucher"/>
62
<field name="date" select="1" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)" required="1"/>
63
<field name="period_id"/>
64
<field name="journal_id" invisible="context.get('line_type', False)" select="1" string="Journal" on_change="onchange_journal_id(journal_id)"/>
66
<group colspan="1" col="2" name="group_1_2">
67
<field name="company_id" widget="selection"/>
68
<field name="account_id" widget="selection" invisible="True"/>
69
<field name="name" invisible="context.get('line_type', False)" required="1" string="Description"/>
70
<field name="pre_line" invisible="1"/>
71
<field name="type" invisible="True"/>
72
<field name="voucher_type_id" invisible="1"/>
75
<notebook colspan="4">
76
<page string="Voucher Detail">
77
<div class="oe_right oe_button_box" name="buttons">
78
<button name="%(waction_stock_wizardImportMoveLine)d" string="Import Move Lines" states="draft" type="action" context="{'move_type' : 'dr'}" colspan="2"/>
80
<field name="line_dr_ids" colspan="4" nolabel="1" height="140">
81
<tree string="Voucher Detail" editable="bottom" colors="gray:amount==0">
82
<field name="move_line_id" domain="[('reconcile_id','=',False),('account_id.reconcile','=',True),('credit','>',0)]" on_change="onchange_move_id(move_line_id, parent.journal_id, parent.currency_id)" readonly="1"/>
83
<field name="partner_id" on_change="onchange_partner_id(move_line_id)"/>
84
<field name="account_id" domain="[('type','!=','view')]"/>
85
<field name="analytic_plan_id"/>
86
<field name="name" required="1"/>
87
<field name="date_original" readonly="1"/>
88
<field name="date_due" readonly="1"/>
89
<field name="amount_original" readonly="1"/>
90
<field name="amount_unreconciled" readonly="1"/>
91
<field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
92
<field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
95
<group name="group_4" colspan="4" col="2">
96
<group colspan="1" col="2" name="group_4_1">
97
<field name="amount" string="Total Voucher" widget="monetary" options="{'currency_field' : 'currency_id'}"/>
98
<field name="currency_id" string="Voucher Currency" invisible="1"/>
99
<field name="is_multi_currency" invisible="1"/>
100
<field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" string="Exc. Rate" invisible="1"/>
101
<field name="payment_rate_currency_id" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)" string="Company Currency" invisible="1"/>
102
<field name="paid_amount_in_company_currency" string="Total In Company Currency" widget="monetary" options="{'currency_field' : 'currency_id'}"/>
104
<group name="group_4_2" colspan="1" col="2">
105
<field name="writeoff_amount" widget="monetary" options="{'currency_field' : 'currency_id'}"/>
106
<field name="payment_option" invisible="1"/>
107
<field name="writeoff_acc_id" domain="[('type','!=','view')]" attrs="{'required':[('writeoff_amount','!=',0)]}"/>
111
<page string="Notes">
112
<field name="narration" colspan="4" nolabel="1"/>
114
<page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
115
<field name="move_ids" colspan="4" nolabel="1" readonly="1">
116
<tree string="Journal Items">
117
<field name="move_id"/>
120
<field name="statement_id"/>
121
<field name="partner_id"/>
122
<field name="account_id"/>
124
<field name="debit"/>
125
<field name="credit"/>
126
<field name="state"/>
127
<field name="reconcile_id"/>
128
<field name="amount_currency"/>
129
<field name="currency_id"/>
133
<page string="Audit Trail">
134
<group name="group_3" colspan="4" col="3">
135
<field name="created_time" string="Created"/>
136
<field name="created_user_id" nolabel="1"/>
137
<field name="confirmed_time" string="Confirmed"/>
138
<field name="confirmed_user_id" nolabel="1"/>
139
<field name="approved_time" string="Approved"/>
140
<field name="approved_user_id" nolabel="1"/>
141
<field name="proforma_time" string="Proforma"/>
142
<field name="proforma_user_id" nolabel="1"/>
143
<field name="posted_time" string="Posted"/>
144
<field name="posted_user_id" nolabel="1"/>
149
<div class="oe_chatter">
150
<field name="message_follower_ids" widget="mail_followers"/>
151
<field name="message_ids" widget="mail_thread"/>
159
<record model="ir.ui.view" id="tree_account_cashPayment">
160
<field name="name">Tree Cash Payment</field>
161
<field name="model">account.cash_payment</field>
162
<field name="arch" type="xml">
163
<tree colors="blue:state == 'draft';gray:state == 'cancel'" string="Voucher Entries">
164
<field name="number" string="# Voucher"/>
165
<field name="name" string="Description"/>
167
<field name="period_id"/>
168
<field name="company_id"/>
169
<field name="journal_id"/>
170
<field name="amount" sum="Total Amount"/>
171
<field name="state"/>