update education module

This commit is contained in:
2025-02-26 16:28:17 +07:00
parent bc4a67a616
commit f79a7fe0b9
19 changed files with 378 additions and 137 deletions
+18 -6
View File
@@ -5,6 +5,13 @@
<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>
@@ -17,6 +24,7 @@
<field name="amount_paid" />
</group>
<group>
<field name="class_id" />
<field name="total_score" />
<field name="attached_file" />
<field name="write_date" />
@@ -25,9 +33,14 @@
<group>
<field name="notes" />
</group>
<group>
<field name="description" />
</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>
@@ -48,9 +61,9 @@
<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="name" />
<field name="class_id" />
<filter name="total_score" domain="[('total_score', '>', 10)]" />
</search>
</field>
</record>
@@ -59,5 +72,4 @@
<field name="res_model">education.student</field>
<field name="view_mode">list,form</field>
</record>
</odoo>