108 lines
4.8 KiB
XML
108 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_academic_applicant_tree" model="ir.ui.view">
|
|
<field name="name">academic.applicant.list</field>
|
|
<field name="model">academic.applicant</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Candidatos" decoration-success="state == 'approved'" decoration-danger="state == 'rejected'"
|
|
decoration-info="state == 'submitted'">
|
|
<field name="name"/>
|
|
<field name="bi"/>
|
|
<field name="course_id"/>
|
|
<field name="exam_score" optional="show"/>
|
|
<field name="state" widget="badge" decoration-success="state == 'approved'"
|
|
decoration-info="state == 'submitted'" decoration-danger="state == 'rejected'"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_academic_applicant_form" model="ir.ui.view">
|
|
<field name="name">academic.applicant.form</field>
|
|
<field name="model">academic.applicant</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Ficha do Candidato">
|
|
<header>
|
|
<button name="action_submit"
|
|
string="Submeter Candidatura"
|
|
type="object"
|
|
class="oe_highlight"
|
|
invisible="state != 'draft'"/>
|
|
|
|
<button name="action_mark_exam"
|
|
string="Marcar Exame"
|
|
type="object"
|
|
class="oe_highlight"
|
|
invisible="state != 'submitted'"/>
|
|
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,submitted,exam,approved"/>
|
|
</header>
|
|
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label for="name" string="Nome do Candidato"/>
|
|
<h1>
|
|
<field name="name" placeholder="Ex: Alício Mussenga"/>
|
|
</h1>
|
|
</div>
|
|
|
|
<group>
|
|
<group string="Informações Pessoais">
|
|
<field name="bi"/>
|
|
<field name="birth_date"/>
|
|
<field name="gender" widget="radio" options="{'horizontal': true}"/>
|
|
</group>
|
|
<group string="Dados da Candidatura">
|
|
<field name="course_id"/>
|
|
<field name="exam_id"
|
|
invisible="state == 'draft'"
|
|
readonly="state != 'submitted'"/>
|
|
|
|
<field name="exam_score"
|
|
groups="cefope_core.group_cefope_administrator,cefope_core.group_cefope_teacher"
|
|
readonly="state != 'exam'"
|
|
invisible="state in ['draft', 'submitted']"/>
|
|
</group>
|
|
</group>
|
|
|
|
<notebook>
|
|
<page string="Histórico Escolar" name="school_history">
|
|
<group>
|
|
<group>
|
|
<field name="previous_school"/>
|
|
<field name="previous_school_type"/>
|
|
</group>
|
|
<group>
|
|
<field name="graduation_year"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
|
|
<page string="Documentos Enviados" name="documents">
|
|
<group>
|
|
<group string="Bilhete de Identidade">
|
|
<field name="photo_bi" widget="image" class="oe_avatar" style="max-width: 200px;"/>
|
|
</group>
|
|
<group string="Certificados">
|
|
<field name="certificate" widget="binary"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
|
|
<page string="Contactos" name="contacts">
|
|
<group>
|
|
<field name="phone"/>
|
|
<field name="email"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_academic_applicant" model="ir.actions.act_window">
|
|
<field name="name">Candidatos</field>
|
|
<field name="res_model">academic.applicant</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
</odoo> |