You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
300 lines
16 KiB
300 lines
16 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--Tree view for university application-->
|
|
<record id="university_application_view_tree" model="ir.ui.view">
|
|
<field name="name">university.application.view.tree</field>
|
|
<field name="model">university.application</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Student Application">
|
|
<field name="application_no"/>
|
|
<field name="name"/>
|
|
<field name="last_name"/>
|
|
<field name="gender"/>
|
|
<field name="date_of_birth"/>
|
|
<field name="email"/>
|
|
<field name="mobile"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<!--Form view for university application-->
|
|
<record id="university_application_view_form" model="ir.ui.view">
|
|
<field name="name">university.application.view.form</field>
|
|
<field name="model">university.application</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Student Application">
|
|
<header>
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="draft,verify,approve,done"/>
|
|
<button name="action_send_verification" type="object"
|
|
class="oe_highlight"
|
|
string="Send for Verification"
|
|
help="Click to send the application for verification purpose"
|
|
invisible=" state != 'draft'"/>
|
|
<button name="action_verify_application" type="object"
|
|
class="oe_highlight"
|
|
groups="education_university_management.education_university_management_group_hod"
|
|
string="Verify Application"
|
|
help="Click to verify the application and documents"
|
|
invisible="state != 'verification'"/>
|
|
<button name="action_create_student"
|
|
string="Create Student"
|
|
type="object" class="oe_highlight"
|
|
groups="education_university_management.education_university_management_group_hod"
|
|
help="Click to create Student"
|
|
invisible="state != 'approve'"/>
|
|
<button name="%(education_university_management.application_reject_action)d"
|
|
string="Reject"
|
|
groups="education_university_management.education_university_management_group_hod"
|
|
type="action" invisible="state != 'approve'"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button class="oe_stat_button"
|
|
name="action_document_view"
|
|
type="object" icon="fa-list-ol">
|
|
<field string="Documents" name="document_count"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
<field name="image" widget="image"
|
|
class="oe_left oe_avatar"/>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="application_no"/>
|
|
</h1>
|
|
<br/>
|
|
<h2>
|
|
<table>
|
|
<tr>
|
|
<td style="padding-right:10px;">
|
|
<field name="name"
|
|
placeholder="First Name"
|
|
required="1"
|
|
readonly="state == 'done'"/>
|
|
</td>
|
|
<td style="padding-right:10px;">
|
|
<field name="middle_name"
|
|
placeholder="Middle Name"
|
|
readonly="state == 'done'"/>
|
|
</td>
|
|
<td style="padding-right:10px;">
|
|
<field name="last_name"
|
|
placeholder="Last Name"
|
|
required="1"
|
|
readonly="state == 'done'"/>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</h2>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<notebook>
|
|
<page string="Admission Details">
|
|
<group string="Admission Details">
|
|
<group>
|
|
<field name="academic_year_id" required="1"
|
|
readonly="state == 'done'"/>
|
|
<field name="admission_date"
|
|
readonly="state == 'done'"/>
|
|
<field name="company_id"
|
|
readonly="state == 'done'"/>
|
|
</group>
|
|
<group>
|
|
<field name="course_id"
|
|
options='{"no_create": True}'
|
|
readonly="state == 'done'"/>
|
|
|
|
<field name="department_ids"
|
|
invisible="1"/>
|
|
<field name="department_id"
|
|
options='{"no_create": True}'
|
|
domain="[('id', 'in', department_ids)]"
|
|
readonly="state == 'done'"/>
|
|
<field name="semester_ids" invisible="1"/>
|
|
<field name="semester_id"
|
|
options='{"no_create": True}'
|
|
domain="[('id', 'in', semester_ids)]"
|
|
readonly="state == 'done'"/>
|
|
<field name="batch_ids" invisible="1"/>
|
|
<field name="batch_id"
|
|
options='{"no_create": True}'
|
|
domain="[('id', 'in', batch_ids)]"
|
|
readonly="state == 'done'"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Personal Details">
|
|
<group string="Personal Details">
|
|
<group>
|
|
<field name="date_of_birth"
|
|
readonly="state == 'done'"/>
|
|
|
|
<field name="gender"
|
|
readonly="state == 'done'"/>
|
|
<field name="father_name"
|
|
readonly="state == 'done'"/>
|
|
<field name="mother_name"
|
|
readonly="state == 'done'"/>
|
|
<field name="guardian_id"
|
|
readonly="state == 'done'"/>
|
|
|
|
</group>
|
|
<group>
|
|
<field name="blood_group"
|
|
readonly="state == 'done'"/>
|
|
<field name="nationality_id"
|
|
readonly="state == 'done'"/>
|
|
<field name="mother_tongue"
|
|
readonly="state == 'done'"/>
|
|
<field name="religion"
|
|
readonly="state == 'done'"/>
|
|
<field name="caste"
|
|
readonly="state == 'done'"/>
|
|
</group>
|
|
</group>
|
|
<group string="Contact Details">
|
|
<group>
|
|
<field name="email"
|
|
readonly="state == 'done'"/>
|
|
</group>
|
|
<group>
|
|
<field name="mobile"
|
|
readonly="state == 'done'"/>
|
|
|
|
<field name="phone"
|
|
readonly="state == 'done'"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group string="Contact Address">
|
|
<span class="o_form_label o_td_label"
|
|
name="address_name">
|
|
<b>Address</b>
|
|
</span>
|
|
<div class="o_address_format">
|
|
<field name="street" required="1"
|
|
placeholder="Street..."
|
|
class="o_address_street"
|
|
readonly="state == 'done'"/>
|
|
|
|
<field name="street2"
|
|
placeholder="Street 2..."
|
|
class="o_address_street"
|
|
readonly="state == 'done'"/>
|
|
|
|
<field name="city" placeholder="City"
|
|
class="o_address_city"
|
|
readonly="state == 'done'"/>
|
|
<field name="state_id"
|
|
class="o_address_state"
|
|
placeholder="State"
|
|
options='{"no_open": True}'
|
|
readonly="state == 'done'"/>
|
|
<field name="zip" placeholder="ZIP"
|
|
class="o_address_zip"
|
|
readonly="state == 'done'"/>
|
|
|
|
<field name="country_id"
|
|
placeholder="Country"
|
|
class="o_address_country"
|
|
readonly="state == 'done'"
|
|
|
|
options='{"no_open": True, "no_create": True}'/>
|
|
</div>
|
|
<field name="is_same_address"
|
|
readonly="state == 'done'"/>
|
|
|
|
</group>
|
|
<group string="Permanent Address"
|
|
readonly="state == 'done'"
|
|
invisible="is_same_address">
|
|
|
|
<span class="o_form_label o_td_label"
|
|
name="address_name">
|
|
<b>Permanent Address</b>
|
|
</span>
|
|
<div class="o_address_format">
|
|
<field name="per_street"
|
|
placeholder="Street..."
|
|
class="o_address_street"/>
|
|
<field name="per_street2"
|
|
placeholder="Street 2..."
|
|
class="o_address_street"/>
|
|
<field name="per_city"
|
|
placeholder="City"
|
|
class="o_address_city"/>
|
|
<field name="per_state_id"
|
|
class="o_address_state"
|
|
placeholder="State"
|
|
options='{"no_open": True}'/>
|
|
<field name="per_zip"
|
|
placeholder="ZIP"
|
|
class="o_address_zip"/>
|
|
<field name="per_country_id"
|
|
placeholder="Country"
|
|
class="o_address_country"
|
|
options='{"no_open": True, "no_create": True}'/>
|
|
</div>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Previous Education">
|
|
<group>
|
|
<group>
|
|
<field name="prev_institute" invisible="state == 'done'" readonly="1"/>
|
|
<field name="prev_result" invisible="state == 'done'" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="prev_course" invisible="state == 'done'" readonly="1"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Reject Reason"
|
|
invisible="not reject_reason">
|
|
<group>
|
|
<field name="reject_reason"
|
|
invisible="not reject_reason"/>
|
|
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids"
|
|
widget="mail_followers"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<!--Search view for university application-->
|
|
<record id="university_application_view_search" model="ir.ui.view">
|
|
<field name="name">Student Application</field>
|
|
<field name="model">university.application</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Application">
|
|
<filter string="New Application" name="new_application"
|
|
domain="[('state','!=','done')]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<!--Menu action for university application-->
|
|
<record id="university_application_action" model="ir.actions.act_window">
|
|
<field name="name">Student Application</field>
|
|
<field name="res_model">university.application</field>
|
|
<field name="view_mode">tree,form,graph,pivot</field>
|
|
<field name="search_view_id" ref="university_application_view_search"/>
|
|
<field name="context">{'search_default_new_application': 1}</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Create the your first student application here.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<menuitem id="university_application_menu" name="Application"
|
|
parent="menu_university_admission_root"
|
|
action="university_application_action" sequence="0"/>
|
|
</odoo>
|
|
|