61 lines
2.5 KiB
XML
61 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="view_student_student_tree" model="ir.ui.view">
|
|
<field name="name">student.student.list</field>
|
|
<field name="model">student.student</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Danh sách học sinh">
|
|
<field name="name" />
|
|
<field name="student_id" />
|
|
<field name="birth_date" />
|
|
<field name="gender" />
|
|
<field name="email" />
|
|
<field name="phone" />
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_student_student_form" model="ir.ui.view">
|
|
<field name="name">student.student.form</field>
|
|
<field name="model">student.student</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Form học sinh">
|
|
<header>
|
|
<button name="action_confirm" type="object"
|
|
string="Confirm" class="btn-primary"
|
|
invisible="state != 'draft'" />
|
|
<button name="action_graduate" type="object"
|
|
string="Graduate" class="btn-success"
|
|
invisible="state != 'confirmed'" />
|
|
</header>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="name" string="Họ tên" />
|
|
<div class="d-flex">
|
|
<field name="student_id" string="Mã học sinh" />
|
|
<button name="action_generate_student_id" type="object"
|
|
string="Generate" class="btn-primary" />
|
|
</div>
|
|
<field name="email" string="Email" />
|
|
<field name="phone" string="Số điện thoại" />
|
|
</group>
|
|
<group>
|
|
<field name="birth_date" />
|
|
<field name="gender" widget="radio" />
|
|
<field name="course_ids" widget="many2many_tags" />
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_student_student" model="ir.actions.act_window">
|
|
<field name="name">Học sinh</field>
|
|
<field name="res_model">student.student</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
|
|
</odoo> |