~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to account_voucher/voucher_view.xml

  • Committer: Mantavya Gajjar
  • Date: 2009-04-16 13:01:59 UTC
  • mto: (3589.23.3 addons-extra)
  • mto: This revision was merged to the branch mainline in revision 3608.
  • Revision ID: mga@tinyerp.com-20090416130159-z5ec22atycrwcl1v
uploda the new reviewd clean code for the indian accounting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
        <data>
 
4
                <record model="ir.ui.view" id="view_voucher_tree">
 
5
                        <field name="name">account.voucher.tree</field>
 
6
                        <field name="model">account.voucher</field>
 
7
                        <field name="type">tree</field>
 
8
                        <field name="arch" type="xml">
 
9
                                <tree string="Vouchers">
 
10
                                        <field name="name"/>
 
11
                                        <field name="journal_id"/>
 
12
                                        <field name="account_id" />
 
13
                                        <field name="amount"/>
 
14
                                        <field name="date"/>
 
15
                                        <field name="period_id"/>
 
16
                                </tree>
 
17
                        </field>
 
18
                </record>
 
19
                
 
20
                <record model="ir.ui.view" id="view_voucher_form">
 
21
                        <field name="name">account.voucher.form</field>
 
22
                        <field name="model">account.voucher</field>
 
23
                        <field name="type">form</field>
 
24
                        <field name="arch" type="xml">
 
25
                                <form string="Voucher">
 
26
                                    <group col="6" colspan="4">
 
27
                                        <field name="name" select="1" colspan="4"/>
 
28
                                        <field name="journal_id" select="1" on_change="onchange_journal(journal_id,type)"/>
 
29
                                            <field name="account_id" select="2" on_change="onchange_account(account_id)"/>
 
30
                                            <field name="type" select="2" on_change="onchange_journal(journal_id,type)"/>
 
31
                                            <field name="number"/>
 
32
                                            <!--field name="amount" select="1" invisible="1"/-->
 
33
                                            <!--field name="partner_id" select="2"/-->
 
34
                                        </group>
 
35
                                        <notebook colspan="4">
 
36
                                                <page string="Entry Lines">
 
37
                                                        <field name="payment_ids" colspan="4" nolabel="1" height="275">
 
38
                                                                <tree string="Voucher Lines" editable="top">
 
39
                                                                        <field name="account_analytic_id"/>
 
40
                                                                        <field name="partner_id" on_change="onchange_partner(partner_id,type,parent.type)"/>
 
41
                                                                        <field name="account_id"/>
 
42
                                                                        <field name="name"/>
 
43
                                                                        <field name="type"/>
 
44
                                                                        <field name="amount"/>
 
45
                                                                        <field name="ref"/>
 
46
                                                                </tree>
 
47
                                                        </field>
 
48
                                                        <separator string="Narration" colspan="4"/>
 
49
                                                        <field name="narration" colspan="4" nolabel="1"/>
 
50
                                                        <group col="6" colspan="6">
 
51
                                                                <field name="state"/>
 
52
                                                                <button name="open_voucher" string="Pro-forma" states="draft" type="object"/>
 
53
                                                                <button name="proforma_voucher" string="Create" states="proforma" type="object"/>
 
54
                                                                <button name="cancel_voucher" string="Cancel" states="draft,proforma,posted" type="object"/>
 
55
                                                                <button name="action_cancel_draft" states="cancel" type="object" string="Set to Draft"/>
 
56
                                                        </group>
 
57
                                                </page>
 
58
                                                <page string="Other Info">
 
59
                                                        <field name="company_id" select="1"/>
 
60
                                                        <field name="currency_id" select="1" />
 
61
                                                        <field name="period_id"/>
 
62
                                                        <field name="date" select="1"/>
 
63
                                                        <!--field name="reference_type" select="2" nolabel="1" size="0"/>
 
64
                                                        <field name="reference" select="1" nolabel="1"/-->
 
65
                                                        <separator string="General Entries" colspan="4"/>
 
66
                                                        <field name="move_ids" colspan="4" nolabel="1" readonly="1"/>
 
67
                                                </page>
 
68
                                        </notebook>
 
69
                                </form>
 
70
                        </field>
 
71
                </record>
 
72
                
 
73
                <record model="ir.actions.act_window" id="action_voucher_list">
 
74
                        <field name="name">Vouchers</field>
 
75
                        <field name="res_model">account.voucher</field>
 
76
                        <field name="view_type">form</field>
 
77
                        <field name="view_mode">tree,form</field>
 
78
                        <field name="view_id" eval="view_voucher_tree"/>
 
79
                </record>
 
80
                <menuitem name="Financial Management/Voucher Entries" 
 
81
                id="menu_action_voucher_list" action="action_voucher_list"/>
 
82
                
 
83
                <!--  Receipt Vouchers -->
 
84
                <record model="ir.actions.act_window" id="action_receipt_vou_voucher_list">
 
85
                        <field name="name">Receipt Vouchers</field>
 
86
                        <field name="res_model">account.voucher</field>
 
87
                        <field name="view_type">form</field>
 
88
                        <field name="view_mode">tree,form</field>
 
89
                        <field name="view_id" eval="view_voucher_tree"/>
 
90
                        <field name="domain">[('type','like','rec_voucher')]</field>
 
91
                        <field name="context">{'type':'rec_voucher'}</field>
 
92
                </record>
 
93
                <menuitem name="Financial Management/Voucher Entries/Receipt Vouchers" 
 
94
                id="menu_action_receipt_vou_voucher_list" action="action_receipt_vou_voucher_list"/>
 
95
                
 
96
                <record model="ir.actions.act_window" id="action_receipt_cashreceipt_voucher_list">
 
97
                        <field name="name">Cash Receipt</field>
 
98
                        <field name="res_model">account.voucher</field>
 
99
                        <field name="view_type">form</field>
 
100
                        <field name="view_mode">tree,form</field>
 
101
                        <field name="view_id" eval="view_voucher_tree"/>
 
102
                        <field name="domain">[('type','=','rec_voucher')]</field>
 
103
                        <field name="context">{'type':'rec_voucher'}</field>
 
104
                </record>
 
105
                <menuitem name="Financial Management/Voucher Entries/Receipt Vouchers/Cash Receipts" 
 
106
                id="menu_action_receipt_cashreceipt_voucher_list" action="action_receipt_cashreceipt_voucher_list"/>
 
107
                                
 
108
                <record model="ir.actions.act_window" id="action_view_cash_rec_voucher_form">
 
109
                        <field name="name">Cash Receipt Voucher</field>
 
110
                        <field name="res_model">account.voucher</field>
 
111
                        <field name="view_type">form</field>
 
112
                        <field name="view_mode">form,tree</field>
 
113
                        <field name="view_id" eval="view_voucher_form"/>
 
114
                        <field name="domain">[('type','=','rec_voucher')]</field>
 
115
                        <field name="context">{'type':'rec_voucher'}</field>
 
116
                </record>
 
117
                <menuitem name="Financial Management/Voucher Entries/Receipt Vouchers/Cash Receipts/New Cash Receipt" id="menu_action_view_cash_rec_voucher_form" action="action_view_cash_rec_voucher_form"/>
 
118
                
 
119
                <record model="ir.actions.act_window" id="action_receipt_bakreceipt_voucher_list">
 
120
                        <field name="name">Bank Receipt</field>
 
121
                        <field name="res_model">account.voucher</field>
 
122
                        <field name="view_type">form</field>
 
123
                        <field name="view_mode">tree,form</field>
 
124
                        <field name="view_id" eval="view_voucher_tree"/>
 
125
                        <field name="domain">[('type','=','bank_rec_voucher')]</field>
 
126
                        <field name="context">{'type':'bank_rec_voucher'}</field>
 
127
                </record>
 
128
                <menuitem name="Financial Management/Voucher Entries/Receipt Vouchers/Bank Receipts" 
 
129
                id="menu_action_receipt_bakreceipt_voucher_list" action="action_receipt_bakreceipt_voucher_list"/>
 
130
                
 
131
                <record model="ir.actions.act_window" id="action_view_bank_rec_voucher_form">
 
132
                        <field name="name">Bank Receipt Voucher</field>
 
133
                        <field name="res_model">account.voucher</field>
 
134
                        <field name="view_type">form</field>
 
135
                        <field name="view_mode">form,tree</field>
 
136
                        <field name="view_id" eval="view_voucher_form"/>
 
137
                        <field name="domain">[('type','=','bank_rec_voucher')]</field>
 
138
                        <field name="context">{'type':'bank_rec_voucher'}</field>
 
139
                </record>
 
140
                <menuitem name="Financial Management/Voucher Entries/Receipt Vouchers/Bank Receipts/New Bank Receipt" id="menu_action_view_bank_rec_voucher_form" action="action_view_bank_rec_voucher_form"/>
 
141
                
 
142
                
 
143
                <!--  End Receipt Vouchers -->
 
144
                
 
145
                
 
146
                <!-- Payment Vouchers -->
 
147
                <record model="ir.actions.act_window" id="action_payments_voucher_list">
 
148
                        <field name="name">Payment Vouchers</field>
 
149
                        <field name="res_model">account.voucher</field>
 
150
                        <field name="view_type">form</field>
 
151
                        <field name="view_mode">tree,form</field>
 
152
                        <field name="view_id" eval="view_voucher_tree"/>
 
153
                        <field name="domain">[('type','like','pay_voucher')]</field>
 
154
                        <field name="context">{'type':'pay_voucher'}</field>
 
155
                </record>
 
156
                <menuitem name="Financial Management/Voucher Entries/Payment Vouchers" 
 
157
                id="menu_action_payments_voucher_list" action="action_payments_voucher_list"/>
 
158
                
 
159
                <record model="ir.actions.act_window" id="action_payments_cashpay_voucher_list">
 
160
                        <field name="name">Payment Vouchers</field>
 
161
                        <field name="res_model">account.voucher</field>
 
162
                        <field name="view_type">form</field>
 
163
                        <field name="view_mode">tree,form</field>
 
164
                        <field name="view_id" eval="view_voucher_tree"/>
 
165
                        <field name="domain">[('type','=','pay_voucher')]</field>
 
166
                        <field name="context">{'type':'pay_voucher'}</field>
 
167
                </record>
 
168
                <menuitem name="Financial Management/Voucher Entries/Payment Vouchers/Cash Payments" 
 
169
                id="menu_action_payments_cashpay_voucher_list" action="action_payments_cashpay_voucher_list"/>
 
170
                
 
171
                <record model="ir.actions.act_window" id="action_view_cash_pay_voucher_form">
 
172
                        <field name="name">Cash Payment Voucher</field>
 
173
                        <field name="res_model">account.voucher</field>
 
174
                        <field name="view_type">form</field>
 
175
                        <field name="view_mode">form,tree</field>
 
176
                        <field name="view_id" eval="view_voucher_form"/>
 
177
                        <field name="domain">[('type','=','pay_voucher')]</field>
 
178
                        <field name="context">{'type':'pay_voucher'}</field>
 
179
                </record>
 
180
                <menuitem name="Financial Management/Voucher Entries/Payment Vouchers/Cash Payments/New Cash Payment" id="menu_action_view_cash_pay_voucher_form" action="action_view_cash_pay_voucher_form"/>
 
181
        
 
182
                <record model="ir.actions.act_window" id="action_payments_bankpay_voucher_list">
 
183
                        <field name="name">Payment Vouchers</field>
 
184
                        <field name="res_model">account.voucher</field>
 
185
                        <field name="view_type">form</field>
 
186
                        <field name="view_mode">tree,form</field>
 
187
                        <field name="view_id" eval="view_voucher_tree"/>
 
188
                        <field name="domain">[('type','=','bank_pay_voucher')]</field>
 
189
                        <field name="context">{'type':'bank_pay_voucher'}</field>
 
190
                </record>
 
191
                <menuitem name="Financial Management/Voucher Entries/Payment Vouchers/Bank Payments" 
 
192
                id="menu_action_payments_bankpay_voucher_list" action="action_payments_bankpay_voucher_list"/>
 
193
                
 
194
                <record model="ir.actions.act_window" id="action_view_bank_pay_voucher_form">
 
195
                        <field name="name">Bank Payment Voucher</field>
 
196
                        <field name="res_model">account.voucher</field>
 
197
                        <field name="view_type">form</field>
 
198
                        <field name="view_mode">form,tree</field>
 
199
                        <field name="view_id" eval="view_voucher_form"/>
 
200
                        <field name="domain">[('type','=','bank_pay_voucher')]</field>
 
201
                        <field name="context">{'type':'bank_pay_voucher'}</field>
 
202
                </record>
 
203
                <menuitem name="Financial Management/Voucher Entries/Payment Vouchers/Bank Payments/New Bank Payment" id="menu_action_view_bank_pay_voucher_form" action="action_view_bank_pay_voucher_form"/>
 
204
                
 
205
                <!-- End Payment Vouchers -->
 
206
                
 
207
                <!-- Other Voucher Enries -->
 
208
                <record model="ir.actions.act_window" id="action_other_voucher_list">
 
209
                        <field name="name">Other Vouchers</field>
 
210
                        <field name="res_model">account.voucher</field>
 
211
                        <field name="view_type">form</field>
 
212
                        <field name="view_mode">tree,form</field>
 
213
                        <field name="view_id" eval="view_voucher_tree"/>
 
214
                </record>
 
215
                <menuitem name="Financial Management/Voucher Entries/Other Vouchers" 
 
216
                id="menu_action_other_voucher_list" action="action_other_voucher_list"/>
 
217
                
 
218
                <record model="ir.actions.act_window" id="action_view_cont_voucher_form">
 
219
                        <field name="name">Contra Voucher</field>
 
220
                        <field name="res_model">account.voucher</field>
 
221
                        <field name="view_type">form</field>
 
222
                        <field name="view_mode">form,tree</field>
 
223
                        <field name="view_id" eval="view_voucher_form"/>
 
224
                        <field name="domain">[('type','=','cont_voucher')]</field>
 
225
                        <field name="context">{'type':'cont_voucher'}</field>
 
226
                </record>
 
227
                <menuitem name="Financial Management/Voucher Entries/Other Vouchers/Contra Voucher" id="menu_action_view_cont_voucher_form" action="action_view_cont_voucher_form"/>
 
228
                <record model="ir.actions.act_window" id="action_view_jour_sale_voucher_form">
 
229
                        <field name="name">Journal Sale Voucher</field>
 
230
                        <field name="res_model">account.voucher</field>
 
231
                        <field name="view_type">form</field>
 
232
                        <field name="view_mode">form,tree</field>
 
233
                        <field name="view_id" eval="view_voucher_form"/>
 
234
                        <field name="domain">[('type','=','journal_sale_voucher')]</field>
 
235
                        <field name="context">{'type':'journal_sale_voucher'}</field>
 
236
                </record>
 
237
                <menuitem name="Financial Management/Voucher Entries/Other Vouchers/Journal Sale Voucher" id="menu_action_view_jour_sale_voucher_form" action="action_view_jour_sale_voucher_form"/>
 
238
                <record model="ir.actions.act_window" id="action_view_jour_pur_voucher_form">
 
239
                        <field name="name">Journal Purchase Voucher</field>
 
240
                        <field name="res_model">account.voucher</field>
 
241
                        <field name="view_type">form</field>
 
242
                        <field name="view_mode">form,tree</field>
 
243
                        <field name="view_id" eval="view_voucher_form"/>
 
244
                        <field name="domain">[('type','=','journal_pur_voucher')]</field>
 
245
                        <field name="context">{'type':'journal_pur_voucher'}</field>
 
246
                </record>
 
247
                <menuitem name="Financial Management/Voucher Entries/Other Vouchers/Journal Purchase Voucher" id="menu_action_view_jour_pur_voucher_form" action="action_view_jour_pur_voucher_form"/>
 
248
                
 
249
                <record model="ir.actions.act_window" id="action_view_jour_voucher_form">
 
250
                        <field name="name">Journal Voucher</field>
 
251
                        <field name="res_model">account.voucher</field>
 
252
                        <field name="view_type">form</field>
 
253
                        <field name="view_mode">form,tree</field>
 
254
                        <field name="view_id" eval="view_voucher_form"/>
 
255
                        <field name="domain">[('type','=','journal_voucher')]</field>
 
256
                        <field name="context">{'type':'journal_voucher'}</field>
 
257
                </record>
 
258
                <menuitem 
 
259
                        name="Financial Management/Voucher Entries/Other Vouchers/Journal Voucher" 
 
260
                        id="menu_action_view_jour_voucher_form" 
 
261
                        action="action_view_jour_voucher_form"/>
 
262
 
 
263
                </data>
 
264
</openerp>