-
Notifications
You must be signed in to change notification settings - Fork 1
/
openacademy.xml
110 lines (104 loc) · 4.47 KB
/
openacademy.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<odoo>
<data>
<!-- course form view -->
<record model="ir.ui.view" id="course_form_view">
<field name="name">course.form</field>
<field name="model">openacademy.course</field>
<field name="arch" type="xml">
<form string="Course Form">
<sheet>
<group>
<field name="name"/>
<field name="responsible_id"/>
</group>
<notebook>
<page string="Description">
<field name="description"/>
</page>
<page string="About">
This is an example of notebooks
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!--course search view-->
<record model="ir.ui.view" id="course_search_view">
<field name="name">course.search</field>
<field name="model">openacademy.course</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="description"/>
</search>
</field>
</record>
<!--course list view-->
<record model="ir.ui.view" id="course_tree_view">
<field name="name">course.tree</field>
<field name="model">openacademy.course</field>
<field name="arch" type="xml">
<tree string="Course Tree">
<field name = "name" />
<field name = "responsible_id" />
</tree>
</field>
</record>
<!--session tree/list view-->
<record model="ir.ui.view" id="session_tree_view">
<field name="name">session.tree</field>
<field name="model">openacademy.session</field>
<field name="arch" type="xml">
<tree string="Session Tree">
<field name="name" />
<field name="course_id" />
</tree>
</field>
</record>
<!-- session form view -->
<record model="ir.ui.view" id="session_form_view">
<field name = "name">session.form</field>
<field name = "model">openacademy.session</field>
<field name = "arch" type="xml">
<form string="Session Form">
<sheet>
<group>
<group string="General">
<field name="course_id"/>
<field name = "name" />
<field name = "instructor_id" />
</group>
<group string="Schedule">
<field name="start_date"/>
<field name="duration"/>
<field name="seats"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- window action -->
<record model = "ir.actions.act_window" id="course_list_action">
<field name = "name"> Courses </field>
<field name = "res_model">openacademy.course</field>
<field name = "view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Create the first course</p>
</field>
</record>
<record model = "ir.actions.act_window" id="session_list_action">
<field name = "name"> Sessions </field>
<field name = "res_model">openacademy.session</field>
<field name = "view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">No Sessions Yet</p>
</field>
</record>
<menuitem id="main_openacademy_menu" name="Open Academy"/>
<menuitem id="openacademy_menu" name="Open Academy" parent="main_openacademy_menu"/>
<menuitem id="course_menu" name="Courses" parent="openacademy_menu" action="course_list_action"/>
<menuitem id="session_menu" name="Sessions" parent="openacademy_menu" action="session_list_action"/>
</data>
</odoo>