1
<?xml version="1.0" encoding="utf-8"?>
6
<record id="select_account_memorialJournal" model="ir.ui.view">
7
<field name="name">Search Memorial Journal</field>
8
<field name="model">account.memorial_journal</field>
9
<field name="arch" type="xml">
10
<search string="Search Memorial Journal">
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_memorialJournal">
41
<field name="name">Form Memorial Journal</field>
42
<field name="model">account.memorial_journal</field>
43
<field name="arch" type="xml">
44
<form string="Memorial Journal" version="7.0">
46
<button name="button_confirm" type="workflow" string="Confirm" colspan="2" icon="gtk-yes" states="draft" groups="ar_account.group_account_memorialJournalValidator"/>
47
<button name="button_approve" type="workflow" string="Approve" colspan="2" icon="gtk-yes" states="confirm" groups="ar_account.group_account_memorialJournalValidator"/>
48
<button name="button_proforma" type="workflow" string="Proforma" colspan="2" icon="gtk-yes" states="approve" groups="ar_account.group_account_memorialJournalUser"/>
49
<button name="button_posted" type="workflow" string="Posted" colspan="2" icon="gtk-yes" states="proforma,approve" groups="ar_account.group_account_memorialJournalPost"/>
50
<button name="button_cancel" type="workflow" string="Cancel" colspan="2" icon="gtk-cancel" states="draft,confirm,proforma,approve" groups="ar_account.group_account_memorialJournalCancel"/>
51
<button name="button_action_cancel" type="object" string="Cancel" colspan="2" icon="gtk-cancel" states="posted" groups="ar_account.group_account_memorialJournalCancel"/>
52
<button name="button_action_set_to_draft" type="object" string="Set To Draft" colspan="2" icon="terp-stock_effects-object-colorize" states="cancel" groups="ar_account.group_account_memorialJournalCancel"/>
53
<field name="state" widget="statusbar" statusbar_visible="draft,confirm,approve,proforma,posted" statusbar_colors='{"posted":"green","cancel":"red"}'/>
57
<label string="Memorial Journal"/>
59
<group name="group_1" colspan="4" col="4">
60
<field name="number" string="# Voucher"/>
61
<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"/>
62
<field name="period_id"/>
63
<field name="journal_id" invisible="context.get('line_type', False)" select="1" string="Journal" on_change="onchange_journal_id(journal_id)"/>
64
<field name="company_id" widget="selection"/>
65
<field name="account_id" widget="selection" invisible="1"/>
66
<field name="name" invisible="context.get('line_type', False)" required="1" string="Description"/>
67
<field name="pre_line" invisible="1"/>
68
<field name="type" invisible="True"/>
69
<field name="voucher_type_id" invisible="1"/>
71
<notebook colspan="4">
72
<page string="Voucher Detail">
73
<div class="oe_right oe_button_box" name="buttons">
74
<button name="%(waction_stock_wizardImportMoveLine)d" string="Import Move Lines" states="draft" icon="gtk-execute" type="action" context="{'move_type' : 'all'}" colspan="2"/>
76
<field name="line_ids" colspan="4" nolabel="1" height="140">
77
<tree string="Voucher Detail" editable="bottom" colors="gray:amount==0">
78
<field name="move_line_id" domain="[('reconcile_id','=',False),('account_id.reconcile','=',True)]" on_change="onchange_move_line_id(move_line_id, parent.journal_id, parent.currency_id)" readonly="1"/>
79
<field name="partner_id" on_change="onchange_partner_id(move_line_id)"/>
80
<field name="account_id" domain="[('type','!=','view')]"/>
81
<field name="name" required="1"/>
82
<field name="type" required="1"/>
83
<field name="date_original" readonly="1" invisible="0"/>
84
<field name="date_due" readonly="1" invisible="0"/>
85
<field name="amount_original" readonly="1" invisible="0"/>
86
<field name="amount_unreconciled" readonly="1" invisible="0"/>
87
<field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" invisible="0"/>
88
<field name="amount" on_change="onchange_amount(amount, amount_unreconciled, context)" required="1"/>
91
<field name="writeoff_amount" invisible="1"/>
94
<field name="narration" colspan="4" nolabel="1"/>
96
<page string="Admin Only">
97
<separator string="Amount Total" colspan="2"/>
98
<field name="amount" invisible="context.get('line_type', False)"/>
99
<field name="currency_id"/>
100
<separator string="Amount In Company Currency" colspan="2"/>
101
<field name="is_multi_currency" invisible="1"/>
102
<field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" string="Rate"/>
103
<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"/>
104
<field name="paid_amount_in_company_currency" string="Total"/>
106
<page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
107
<field name="move_ids" colspan="4" nolabel="1" readonly="1">
108
<tree string="Journal Items">
109
<field name="move_id"/>
112
<field name="statement_id"/>
113
<field name="partner_id"/>
114
<field name="account_id"/>
116
<field name="debit"/>
117
<field name="credit"/>
118
<field name="state"/>
119
<field name="reconcile_id"/>
120
<field name="amount_currency"/>
121
<field name="currency_id"/>
125
<page string="Audit Trail">
126
<group name="group_3" colspan="4" col="3">
127
<field name="created_time" string="Created"/>
128
<field name="created_user_id" nolabel="1"/>
129
<field name="confirmed_time" string="Confirmed"/>
130
<field name="confirmed_user_id" nolabel="1"/>
131
<field name="approved_time" string="Approved"/>
132
<field name="approved_user_id" nolabel="1"/>
133
<field name="proforma_time" string="Proforma"/>
134
<field name="proforma_user_id" nolabel="1"/>
135
<field name="posted_time" string="Posted"/>
136
<field name="posted_user_id" nolabel="1"/>
147
<record model="ir.ui.view" id="tree_account_memorialJournal">
148
<field name="name">Tree Memorial Journal</field>
149
<field name="model">account.memorial_journal</field>
150
<field name="arch" type="xml">
151
<tree colors="blue:state == 'draft';gray:state == 'cancel'" string="Voucher Entries">
152
<field name="number" string="# Voucher"/>
153
<field name="name" string="Description"/>
155
<field name="period_id"/>
156
<field name="company_id"/>
157
<field name="state"/>