update education module
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Class Form">
|
||||
<sheet>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}" />
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger"/>
|
||||
<field name="active" invisible="1" />
|
||||
<group>
|
||||
<group>
|
||||
@@ -18,7 +17,6 @@
|
||||
</group>
|
||||
<group>
|
||||
<field name="next_class_id" />
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
@@ -43,9 +41,4 @@
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
</data>
|
||||
<menuitem id="education_class_allow_manager_menu"
|
||||
action="education_class_action"
|
||||
parent="education_management_menu_root"
|
||||
groups="education.education_group_allow_manager_class"
|
||||
sequence="100" />
|
||||
</odoo>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<menuitem name="Education Manager" id="education_management_menu_root" />
|
||||
<menuitem id="education_student_menu" action="education_student_action"
|
||||
parent="education_management_menu_root" name="Students" sequence="50" />
|
||||
<menuitem name="Configurations" id="education_configuration_menu_root" />
|
||||
<menuitem id="education_class_allow_manager_menu"
|
||||
name="Class"
|
||||
action="education_class_action"
|
||||
parent="education_configuration_menu_root"
|
||||
sequence="10" />
|
||||
</odoo>
|
||||
@@ -1,7 +1,7 @@
|
||||
<odoo>
|
||||
<record id="student_level_view_form" model="ir.ui.view">
|
||||
<field name="name">student.level.form</field>
|
||||
<field name="model">student.level</field>
|
||||
<field name="name">education.student.level.form</field>
|
||||
<field name="model">education.student.level</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Student Level Form">
|
||||
<sheet>
|
||||
|
||||
@@ -36,11 +36,11 @@
|
||||
<field name="name">education.student.list</field>
|
||||
<field name="model">education.student</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Student list">
|
||||
<list string="Student list">
|
||||
<field name="name" />
|
||||
<field name="student_code" />
|
||||
<field name="class_id" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record id="education_student_view_search" model="ir.ui.view">
|
||||
@@ -59,7 +59,5 @@
|
||||
<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>
|
||||
@@ -1,24 +0,0 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<!--
|
||||
<template id="listing">
|
||||
<ul>
|
||||
<li t-foreach="objects" t-as="object">
|
||||
<a t-attf-href="#{ root }/objects/#{ object.id }">
|
||||
<t t-esc="object.display_name"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
<template id="object">
|
||||
<h1><t t-esc="object.display_name"/></h1>
|
||||
<dl>
|
||||
<t t-foreach="object._fields" t-as="field">
|
||||
<dt><t t-esc="field"/></dt>
|
||||
<dd><t t-esc="object[field]"/></dd>
|
||||
</t>
|
||||
</dl>
|
||||
</template>
|
||||
-->
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user