update education module

This commit is contained in:
2025-02-22 10:32:13 +07:00
parent 2b170da354
commit ab34ac054b
15 changed files with 337 additions and 39 deletions
@@ -0,0 +1,65 @@
<?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">
<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="total_score" />
<field name="attached_file" />
<field name="write_date" />
</group>
</group>
<group>
<field name="notes" />
</group>
<group>
<field name="description" />
</group>
</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">
<tree string="Student list">
<field name="name" />
<field name="student_code" />
<field name="class_id" />
</tree>
</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"
filter_domain="['|', '|', ('name', 'ilike', self), ('student_code', '=', self)" />
<field name="class_id" />
</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>
<menuitem name="Education Manager" id="education_student_menu_root" />
<menuitem id="education_student_menu" action="education_student_action"
parent="education_student_menu_root" name="Students" sequence="50" />
</odoo>