Files
Odoo-Tutorial/education/views/education_student_views.xml
2025-02-26 16:28:17 +07:00

75 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="education_student_view_form" model="ir.ui.view">
<field name="name">education.student.form</field>
<field name="model">education.student</field>
<field name="arch" type="xml">
<form string="Student Form">
<header>
<button name="change_to_new" type="object" string="New" />
<button name="change_to_studying" type="object" string="Studying" />
<button name="change_to_off" type="object" string="Off" />
<button name="action_dropout" string="Dropout" type="object" />
<field name="state" widget="statusbar" />
</header>
<sheet>
<group>
<group>
<field name="name" />
<field name="student_code" />
<field name="gender" />
<field name="date_of_birth" />
<field name="age" />
<field name="currency_id" />
<field name="amount_paid" />
</group>
<group>
<field name="class_id" />
<field name="total_score" />
<field name="attached_file" />
<field name="write_date" />
</group>
</group>
<group>
<field name="notes" />
</group>
<notebook>
<page string="Description" name="description">
<field name="description" />
</page>
<page string="Dropout Reason" name="dropout">
<field name="dropout_reason" />
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="education_student_view_list" model="ir.ui.view">
<field name="name">education.student.list</field>
<field name="model">education.student</field>
<field name="arch" type="xml">
<list string="Student list">
<field name="name" />
<field name="student_code" />
<field name="class_id" />
</list>
</field>
</record>
<record id="education_student_view_search" model="ir.ui.view">
<field name="name">education.student.search</field>
<field name="model">education.student</field>
<field name="arch" type="xml">
<search string="Students Search">
<field name="name" />
<field name="class_id" />
<filter name="total_score" domain="[('total_score', '>', 10)]" />
</search>
</field>
</record>
<record id="education_student_action" model="ir.actions.act_window">
<field name="name">Students</field>
<field name="res_model">education.student</field>
<field name="view_mode">list,form</field>
</record>
</odoo>