student_view.xml
48.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form View 1 Of Student's Profiles -->
<record id="view_student_student_form_1" model="ir.ui.view">
<field name="name">student.student.form.1</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<form string="Student Information" create="false" delete="false">
<header>
<button class="oe_highlight oe_stat_button" name="%(school.action_terminate_wizard)d" string="Terminate" type="action" icon="fa-ban" states="done" groups="school.group_school_administration" />
<button class="oe_stat_button" name="set_alumni" string="Alumni" type="object" icon="fa-archive" states="done" groups="school.group_school_administration" />
<button class="oe_stat_button" icon="fa-check" name="admission_done" type="object" string="Done" states="draft" groups="school.group_school_administration" />
<field name="state" widget="statusbar" statusbar_visible="alumni,terminate" attrs="{'invisible':[('state','=','done')]}"/>
</header>
<sheet>
<div class="oe_button_box" name="buttons"></div>
<div class="oe_inline">
<newline />
<separator string="Personal Information" />
<b>
<field name="reg_code" readonly="1" />
</b>
<br />
<field name="photo" widget="image" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" class="oe_avatar oe_left" style="max-width:100px;max-height:117px;"/>
<div class="oe_title">
<group>
<field name="name" placeholder="First Name" nolabel="1" required="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<br />
<field name="middle" placeholder="Middle Name" nolabel="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<br />
<field name="last" placeholder="Last Name" nolabel="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<br />
<field name="pid" invisible="1"/>
</group>
</div>
</div>
<group>
<group string="Student Information">
<field name="student_code" readonly="1" />
<field name="roll_no" help="Roll number of Student" readonly="1"/>
<field name="year" placeholder="Year" widget="selection" help="Academic year of Student" attrs="{'readonly':['|',('state','in',['alumni','terminate']),('teachr_user_grp','=',True)]}"/>
<field name="school_id" placeholder="School" widget="selection" help="School of Student" attrs="{'readonly':['|',('state','in',['alumni','terminate']),('teachr_user_grp','=',True)]}"/>
</group>
<group string="Standard Information">
<field name="standard_id" placeholder="Standard" readonly="1" domain="[('school_id','=',school_id)]" widget="selection" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="division_id" placeholder="Division" invisible="1" widget="selection" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="medium_id" placeholder="Medium" readonly="1" widget="selection" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
</group>
</group>
<group>
<group>
<label for="street" string="Address" />
<div class="o_address_format">
<field name="street" class="o_address_street" placeholder="Street..." attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="street2" class="o_address_street" placeholder="Street2..." attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="city" placeholder="City" class="o_address_city" required="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="state_id" domain="[('country_id','=',country_id)]" class="o_address_state" required="1" placeholder="State" options="{"no_open": True}" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="zip" placeholder="ZIP" class="o_address_zip" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="country_id" placeholder="Country" class="o_address_country,oe_no_button" options="{"no_open": True}" required="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
</div>
</group>
<group>
<field name="phone" placeholder="Phone Number" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="mobile" placeholder="Mobile Number" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="email" placeholder="Email Address" String="Email" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="website" widget="url" placeholder="e.g. www.serpentcs.com" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="teachr_user_grp" invisible="1"/>
</group>
</group>
<notebook>
<page string="General" name="general">
<group>
<group>
<field name="cast_id" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" widget="selection" placeholder="Religion/Caste"/>
<field name="date_of_birth" widget="date" placeholder="Birthdate" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="gender" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" placeholder="Gender" required="1"/>
<field name="age"/>
</group>
<group>
<field name="mother_tongue" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" widget="selection" placeholder="Mother Tounge"/>
<field name="admission_date" widget="date" placeholder="Admission Date" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" readonly="1"/>
<field name="maritual_status" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" placeholder="Maritial Status"/>
</group>
<newline />
<separator string="Emergency Contact Details" colspan="4" />
<newline />
<group colspan="4" col="4">
<field name="contact_phone" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" placeholder="Phone Number"/>
<field name="contact_mobile" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" placeholder="Mobile Number"/>
</group>
<newline />
</group>
<newline/>
<separator string="Termination Reason" attrs="{'invisible':[('state','in',['draft','done','alumni'])]}"/>
<group>
<field name="terminate_reason" attrs="{'invisible':[('state','in',['draft','done','alumni'])]}" readonly="1"/>
</group>
</page>
<page string="Parents">
<field name="parent_id"
attrs="{'readonly':[('state','in',['alumni','terminate'])]}"
context="{'form_view_ref':'school.view_parent_form','default_parent_school':1}"
options="{"no_open": True, "no_create": True}"/>
</page>
<page string="References">
<field name="reference_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','in',['alumni','terminate'])]}">
<tree string="Reference" editable="top">
<field name="name" />
<field name="middle" />
<field name="last" />
<field name="designation" />
<field name="phone" />
<field name="gender" />
</tree>
<form string="Reference">
<group col="4" colspan="4">
<field name="name" placeholder="First Name"/>
<field name="gender"/>
<field name="middle" placeholder="Middle Name"/>
<field name="designation" placeholder="Designation"/>
<field name="last" placeholder="Last Name"/>
<field name="phone" placeholder="Phone Number"/>
</group>
</form>
</field>
</page>
<page string="Previous School">
<field name="previous_school_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','in',['alumni','terminate'])]}">
<tree string="Previous School Details">
<field name="name" />
<field name="registration_no" />
<field name="admission_date" />
<field name="exit_date" />
<field name="course_id" widget="selection" />
</tree>
<form string="Previous School Details">
<separator string="Previous School Details" />
<group col="4" colspan="4">
<field name="name" placeholder="School Name" />
<field name="registration_no" placeholder="Registration No" />
<field name="admission_date" />
<field name="exit_date" />
<field name="course_id" widget="selection"/>
<newline />
<separator string="Subjects Details"/>
<field name="add_sub" nolabel="1" colspan="4">
<form>
<group col='4' colspan="4">
<field name="name"/>
<field name="add_sub_id" />
<field name="maximum_marks" />
<field name="minimum_marks" />
</group>
</form>
</field>
</group>
</form>
</field>
</page>
<page string="Award Info">
<field name="award_list" nolabel="1" colspan="4" attrs="{'readonly':[('state','in',['alumni','terminate'])]}">
<tree string="Reference" editable="top">
<field name="name" required="1" placeholder="Name"/>
<field name="description" placeholder="Description"/>
</tree>
<form string="Reference">
<group col="4" colspan="4">
<field name="name" placeholder="Enter Name"/>
<field name="description" placeholder="Enter Description"/>
</group>
</form>
</field>
</page>
<page string="Family Info">
<field name="family_con_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','in',['alumni','terminate'])]}">
<form string="Family Contact Details">
<group>
<group>
<field name="rel_name" />
<field name="stu_name" placeholder="Create or Select Name" attrs="{'invisible':[('rel_name','!=','exist')]}"
options="{"no_create": True}"/>
<field name="name" placeholder="Name" attrs="{'invisible':[('rel_name','!=','new')]}"/>
<field name="relation" placeholder="Enter or select Relation" />
</group>
<group>
<field name="phone" placeholder="Phone Number" />
<field name="email" placeholder="Email ID" />
</group>
</group>
</form>
<tree string="Family Contact Details">
<field name="relative_name"/>
<field name="relation" />
<field name="phone" />
</tree>
</field>
</page>
<page string="Medical">
<group>
<group string="Doctor Information">
<field name="designation" placeholder="Doctor Designation" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="doctor_phone" placeholder="Doctor's Contact No" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
</group>
<group string="Physical Information">
<field name="blood_group" placeholder="e.g.B+,Ab+" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="height" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" placeholder="Height"/>
<field name="weight" attrs="{'readonly':[('state','in',['alumni','terminate'])]}" placeholder="Weight"/>
</group>
</group>
<separator string="Does the applicant have any Disabilities?" colspan="4" />
<group col="6" colspan="4">
<field name="eye" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="ear" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="nose_throat" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="respiratory" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="cardiovascular" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="neurological" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="muskoskeletal" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="dermatological" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
<field name="blood_pressure" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
</group>
<separator string="Notes" colspan="4" />
<group col="6" colspan="4">
<field name="comment" placeholder="Notes About Medical.." nolabel="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"/>
</group>
</page>
<page string="Certificates">
<field name="certificate_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','in',['alumni','terminate'])]}">
<form string="Certificate">
<group col="4">
<field name="description" placeholder="Description About Certificate" />
<field name="certi" />
</group>
</form>
<tree string="Certifaicate" editable="top">
<field name="description" required="1" placeholder="Enter Description"/>
<field name="certi" required="1" placeholder="Upload Certi"/>
</tree>
</field>
</page>
<page string="Remarks">
<field name="description" nolabel="1" colspan="4" attrs="{'readonly':[('state','in',['alumni','terminate'])]}">
<form string="Extra Details">
<group col="4" colspan="2">
<field name="name" placeholder="Field Name" />
<field name="description" placeholder="Description" />
</group>
</form>
<tree string="Remarks" editable="top">
<field name="name" required="1" placeholder="Enter Name"/>
<field name="description" placeholder="Enter Description"/>
</tree>
</field>
</page>
<page string="History" groups="school.group_school_administration,school.group_school_teacher,school.group_school_parent,school.group_school_student">
<field name="history_ids" nolabel="1" colspan="4" readonly="1" attrs="{'readonly':[('state','in',['alumni','terminate'])]}"
options="{"no_open": True, "no_create": True}">
<tree string="History">
<field name="academice_year_id" required="1"/>
<field name="standard_id" required="1"/>
<field name="percentage"/>
<field name="result"/>
</tree>
<form string="History">
<group col="4" colspan="4">
<field name="academice_year_id" placeholder="Acadamic Year" />
<field name="standard_id" placeholder="Select or Create Standard" />
<field name="percentage" />
<field name="result" />
</group>
</form>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Tree View 1 Of Student's Profiles -->
<record id="view_student_student_tree_1" model="ir.ui.view">
<field name="name">student.student.tree.1</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<tree string="Student Information" create="false" delete="false">
<field name="pid" />
<field name="name" />
<field name="student_name" invisible="1" />
<field name="year" widget="selection" />
<field name="admission_date" />
<field name="gender" />
<field name="state" />
<field name="school_id" />
</tree>
</field>
</record>
<!-- Search View 1 Of Student's Profiles -->
<record id="view_student_student_search_1" model="ir.ui.view">
<field name="name">student.student.search.1</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<search string="Student Information">
<group col="10" colspan="4">
<field name="pid" />
<field name="student_name" invisible="1" />
<field name="year" />
<field name="gender" />
<field name="school_id" placeholder="School"/>
</group>
<newline />
<group expand="0" string="Group By..." colspan="12" col="10">
<filter name="class" string="Class" help="By Class" context="{'group_by':'standard_id'}" />
<filter name="gender" string="Gender" help="By Gender" context="{'group_by':'gender'}" />
<filter name="name" string="Name" help="By Class" context="{'group_by':'student_name'}" />
<filter name="school" string="School" help="By School" context="{'group_by':'school_id'}" />
<filter name="state" string="State" help="By State" context="{'group_by':'state'}"/>
</group>
<separator/>
<filter name="alumni" string="Alumni" domain="[('state','=', 'alumni')]" help="Admission In Confirm State"/>
<filter name="terminate" string="Terminated" domain="[('state','=', 'terminate')]" help="Admission In Pending State"/>
<filter name="done" string="Done" domain="[('state','=', 'done')]" help="Admission In Done State"/>
</search>
</field>
</record>
<!-- Kanban View Of Student's Profiles -->
<record id="student_student_kanban_view" model="ir.ui.view">
<field name="name">Student KANBAN</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<kanban default_group_by="standard_id" nocreate="1" create="false">
<field name="color"/>
<field name="id"/>
<field name="name"/>
<field name="email"/>
<templates>
<t t-name="kanban-box">
<t t-set="color" t-value="kanban_color(record.color.raw_value || record.name.raw_value)" />
<div t-att-class="color + (record.color.raw_value == 1 ? ' oe_kanban_color_alert' : '')">
<div class="oe_kanban_box oe_kanban_color_border">
<div class="oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle">
<table class="oe_kanban_table">
<tr>
<td class="oe_kanban_title1" align="left" valign="middle" style="padding-left:10px;">
<h4>
<a type="open">
<field name="name" />
<field name="middle" />
<field name="last" />
<field name="student_name" invisible="1" />
<field name="standard_id" invisible="1" />
<field name="school_id" invisible="1" />
<field name="gender" invisible="1" />
<field name="state" invisible="1" />
</a>
</h4>
</td>
</tr>
</table>
</div>
<div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger oe_kanban_color_border">
<table class="oe_kanban_table">
<tr width="300">
<td valign="top" width="64" align="left">
<a type="open">
<img heigh="80" width="80" t-att-src="kanban_image('student.student', 'photo', record.id.raw_value)" alt="image"/>
</a>
</td>
<td valign="top" align="left" style="padding-left:10px;">
<table>
<tr>
<td>Student ID :</td>
<td style="padding-left:10px;">
<b>
<field name="pid" />
</b>
</td>
</tr>
<tr>
<td>Standard : </td>
<td style="padding-left:10px;">
<b>
<field name="standard_id" />
</b>
</td>
</tr>
<tr>
<td>Admission Date : </td>
<td style="padding-left:10px;">
<b>
<field name="admission_date" />
</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<center>
<b>
<field name="gender" />
</b>
</center>
</td>
</tr>
</table>
</div>
<div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
<div class="oe_kanban_left">
<a role="button" string="Edit" title="Edit" class="btn btn-sm btn-default fa fa-pencil" type="edit" groups="school.group_school_administration"/>
<a role="button" string="Change Color" icon="color-picker" type="color" name="color" />
</div>
<br class="oe_kanban_clear" />
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<!-- Form View Of Admission Register Information -->
<record id="view_student_student_form_2" model="ir.ui.view">
<field name="name">student.student.form.2</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<form string="Admission Register">
<header>
<button class="oe_highlight oe_stat_button" name="set_terminate" string="Terminate" type="object" icon="fa-ban" states="done" groups="school.group_school_administration"/>
<button class="oe_stat_button" name="set_alumni" string="Alumni" type="object" icon="fa-archive" states="done" groups="school.group_school_administration" />
<button class="oe_stat_button" icon="fa-check" name="admission_done" type="object" string="Done" states="draft" groups="school.group_school_administration" />
<button class="oe_stat_button" icon="fa-ban" name="cancel_admission" type="object" string="Cancel" states="draft" groups="school.group_school_administration"/>
<field name="state" widget="statusbar" statusbar_visible="draft,cancel"/>
</header>
<sheet>
<div class="oe_inline">
<newline />
<separator string="Personal Information" />
<field name="photo" widget="image" class="oe_avatar oe_left" style="max-width:100px;max-height:117px;" />
<div class="oe_title">
<group>
<field name="pid" nolabel="1" readonly="1"/>
<br />
<field name="name" placeholder="First Name" nolabel="1" required="1" attrs="{'readonly':[('state','=','alumni')]}"/>
<br />
<field name="middle" placeholder="Middle Name" nolabel="1" attrs="{'readonly':[('state','=','alumni')]}"/>
<br />
<field name="last" placeholder="Last Name" nolabel="1" attrs="{'readonly':[('state','=','alumni')]}"/>
<br/>
<field name="active" invisible="1"/>
</group>
</div>
</div>
<group>
<group string="School Information">
<field name="school_id" placeholder="School Name" required="1"
attrs="{'readonly':[('state','=','alumni')]}" options="{"no_open": True, "no_create": True}"/>
<field name="year" widget="selection" placeholder="Academic Year" readonly="1"/>
<field name="company_id" invisible="1"/>
</group>
<group string="Class Information">
<field name="medium_id" placeholder="Medium" widget="selection" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="standard_id" placeholder="Class" domain="[('school_id','=',school_id),('medium_id','=',medium_id)]" widget="selection" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="division_id" placeholder="Division" widget="selection" attrs="{'readonly':[('state','=','alumni')]}" invisible="1"/>
</group>
</group>
<group colspan="4">
<group>
<label for="street" string="Address" />
<div class="o_address_format">
<field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="street2" placeholder="Street2..." class="o_address_street" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="country_id" placeholder="Country" class="o_address_country,oe_no_button" required="1" options="{"no_open": True}" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="city" placeholder="City" class="o_address_city" required="1" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="state_id" class="o_address_state" domain="[('country_id','=',country_id)]" placeholder="State" options="{"no_open": True}" required="1" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="zip" placeholder="ZIP" class="o_address_zip" attrs="{'readonly':[('state','=','alumni')]}"/>
</div>
</group>
<group>
<field name="phone" placeholder="Phone Number" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="mobile" placeholder="Mobile Number" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="email" placeholder="Email Address" String="Email" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="website" widget="url" placeholder="e.g. www.serpentcs.com" attrs="{'readonly':[('state','=','alumni')]}"/>
</group>
</group>
<notebook colspan="4">
<page string="General">
<form string="General">
<sheet>
<group string="General Information">
<group>
<field name="gender" placeholder="Gender" attrs="{'readonly':[('state','=','alumni')]}" required="1"/>
<field name="date_of_birth" placeholder="Birthdate" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="age" />
</group>
<group>
<field name="mother_tongue" widget="selection" placeholder="Mother Tongue" attrs="{'readonly':[('state','=','alumni')]}"/>
<field name="admission_date" placeholder="Admission Date" attrs="{'readonly':[('state','=','alumni')]}" readonly="1"/>
<field name="maritual_status" placeholder="Select Maritual Status" attrs="{'readonly':[('state','=','alumni')]}"/>
</group>
<newline />
<separator string="Emergency Contact Details" colspan="4" />
<newline />
<group colspan="4" col="4">
<field name="contact_phone" attrs="{'readonly':[('state','=','alumni')]}" placeholder="Phone Number"/>
<field name="contact_mobile" attrs="{'readonly':[('state','=','alumni')]}" placeholder="Mobile Number"/>
</group>
</group>
</sheet>
</form>
</page>
<page string="Parents">
<field name="parent_id" attrs="{'readonly':[('state','=','alumni')]}"
context="{'form_view_ref':'school.view_parent_form','default_parent_school':1}"
options="{"no_open": True, "no_create": True}"/>
</page>
<page string="References">
<field name="reference_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','=','alumni')]}">
<tree string="Reference" editable="top">
<field name="name" placeholder="Firstname"/>
<field name="middle" placeholder="Middlename"/>
<field name="last" placeholder="Surname"/>
<field name="designation" placeholder="Designation"/>
<field name="phone" placeholder="Phone"/>
<field name="gender" placeholder="Gender"/>
</tree>
<form string="Reference">
<group col="4" colspan="4">
<field name="name" placeholder="First Name" required="True"/>
<field name="middle" placeholder="Middle Name" />
<field name="last" placeholder="Last Name" />
<field name="designation" placeholder="Designation" />
<field name="phone" placeholder="Phone Number" />
<field name="gender" placeholder="Gender"/>
</group>
</form>
</field>
</page>
<page string="Previous School">
<field name="previous_school_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','=','alumni')]}">
<tree string="Previous School Details">
<field name="name" />
<field name="registration_no" />
<field name="admission_date" />
<field name="exit_date" />
<field name="course_id" widget="selection" />
</tree>
<form string="Previous School Details">
<separator string="Previous School Details" />
<group col="4" colspan="4">
<field name="name" placeholder="School Name" />
<field name="registration_no" placeholder="Registration No" />
<field name="admission_date" placeholder="Admission Date"/>
<field name="exit_date" placeholder="Exit Date"/>
<field name="course_id" placeholder="Course" widget="selection"/>
<newline />
<separator string="Subjects Details" />
<field name="add_sub" nolabel="1" colspan="4">
<form>
<group col='4' colspan="4">
<field name="name"/>
<field name="add_sub_id" />
<field name="maximum_marks" />
<field name="minimum_marks" />
</group>
</form>
</field>
</group>
</form>
</field>
</page>
<page string="Family Details">
<field name="family_con_ids" nolabel="1" colspan="4" attrs="{'readonly':[('state','=','alumni')]}">
<tree string="Family Contact Details">
<field name="relative_name"/>
<field name="relation" />
<field name="phone" />
</tree>
<form string="Family Contact Details">
<group>
<group>
<field name="rel_name" placeholder="Name" />
<field name="stu_name" placeholder="Create or Select Name" attrs="{'invisible':[('rel_name','!=','exist')]}"
options="{"no_create": True}"/>
<field name="name" placeholder="Name" attrs="{'invisible':[('rel_name','!=','new')]}"/>
<field name="relation" placeholder="Enter or select Relation" />
<field name="relative_name" invisible="1"/>
</group>
<group>
<field name="phone" placeholder="Phone Number" />
<field name="email" placeholder="Email Address" />
</group>
</group>
</form>
</field>
</page>
<page string="Remarks">
<form string="Remarks">
<field name="remark" placeholder="Remark" nolabel="1" colspan="4" attrs="{'readonly':[('state','=','alumni')]}"/>
</form>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Tree View Of Admission Register Information -->
<record id="view_student_student_tree_2" model="ir.ui.view">
<field name="name">student.student.tree.2</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<tree string="Admission Register">
<field name="pid" />
<field name="name" />
<field name="student_name" invisible="1" />
<field name="year" widget="selection" />
<field name="standard_id" widget="selection" />
<field name="school_id" />
<field name="admission_date" />
<field name="gender" />
<field name="state" />
</tree>
</field>
</record>
<!-- Search View Of Admission Register Information -->
<record id="view_student_student_search_2" model="ir.ui.view">
<field name="name">student.student.search.2</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<search string="Admission Register">
<filter string="Draft" name="state_student" domain="[('state','=', 'draft')]" help="Admission In Draft State" />
<separator orientation="vertical" />
<field name="student_name" invisible="1" />
<field name="year" />
<field name="standard_id" />
<field name="gender" />
<field name="school_id" />
<newline />
<group expand="0" string="Group By..." colspan="12" col="10">
<filter name="class" string="Class" domain="[]" help="By Class" context="{'group_by':'standard_id'}" />
<filter name="gender" string="Gender" domain="[]" help="By Gender" context="{'group_by':'gender'}" />
<filter name="name" string="Name" domain="[]" help="By Class" context="{'group_by':'student_name'}" />
<filter name="school" string="School" help="By School" context="{'group_by':'school_id'}" />
</group>
</search>
</field>
</record>
<!-- Action Of Form, Tree & Kanban View Of Admission Register Information -->
<record id="action_student_student_form_2" model="ir.actions.act_window">
<field name="name">Admission Register</field>
<field name="res_model">student.student</field>
<field name="domain">['|',('state','=','draft'),('state','=','cancel')]</field>
<field name="view_id" ref="view_student_student_form_2" />
<field name="search_view_id" ref="view_student_student_search_2" />
<field name="view_mode">kanban,tree,form</field>
</record>
<!-- Action View 2 Of Kanban View Of Student Information -->
<record id="action_view_student_student_kanban_2" model="ir.actions.act_window.view">
<field name="view_mode">kanban</field>
<field eval="21" name="sequence" />
<field name="view_id" ref="student_student_kanban_view" />
<field name="act_window_id" ref="action_student_student_form_2" />
</record>
<!-- Action View 2 Of Tree View Of Student Information -->
<record id="action_student_student_tree_2" model="ir.actions.act_window.view">
<field name="view_mode">tree</field>
<field eval="20" name="sequence" />
<field name="view_id" ref="view_student_student_tree_2" />
<field name="act_window_id" ref="action_student_student_form_2" />
</record>
<!-- Action Of Form, Tree & Kanban Views Of Student Information -->
<record id="action_student_student_form_12" model="ir.actions.act_window">
<field name="name">Students</field>
<field name="domain">[('state', '=', 'done')]</field>
<field name="context">{'search_default_done_student':1}</field>
<field name="res_model">student.student</field>
<field name="view_id" ref="" />
<field name="search_view_id" ref="view_student_student_search_1" />
<field name="view_mode">kanban,tree,form</field>
</record>
<!-- Action of Alumni state -->
<record id="action_student_alumni" model="ir.actions.act_window">
<field name="name">Student Alumni</field>
<field name="domain">[('active','=',False)]</field>
<field name="res_model">student.student</field>
<field name="view_mode">kanban,tree,form</field>
</record>
<!-- Action View 1 Of Kanban View Of Student Information-->
<record id="action_view_student_student_kanban_1" model="ir.actions.act_window.view">
<field name="view_mode">kanban</field>
<field eval="31" name="sequence" />
<field name="view_id" ref="student_student_kanban_view" />
<field name="act_window_id" ref="action_student_student_form_12" />
</record>
</odoo>