2 # Parent 16e4cb131d9f7f3a72a8a1b0bc46c2ce9ac76435
3 diff -r 16e4cb131d9f -r bbfa610bfabd openacademy/__openerp__.py
4 --- a/openacademy/__openerp__.py Thu Aug 07 12:10:05 2014 +0200
5 +++ b/openacademy/__openerp__.py Thu Aug 07 12:11:28 2014 +0200
8 - attendees registration""",
10 + 'views/openacademy.xml',
14 diff -r 16e4cb131d9f -r bbfa610bfabd openacademy/views/openacademy.xml
15 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
16 +++ b/openacademy/views/openacademy.xml Thu Aug 07 12:11:28 2014 +0200
18 +<?xml version="1.0" encoding="UTF-8"?>
21 + <!-- window action -->
23 + The following tag is an action definition for a "window action",
24 + that is an action opening a view or a set of views
26 + <record model="ir.actions.act_window" id="course_list_action">
27 + <field name="name">Courses</field>
28 + <field name="res_model">openacademy.course</field>
29 + <field name="view_type">form</field>
30 + <field name="view_mode">tree,form</field>
31 + <field name="help" type="html">
32 + <p class="oe_view_nocontent_create">Create the first course
37 + <!-- top level menu: no paret -->
38 + <menuitem id="main_openacademy_menu" name="Open Academy"/>
39 + <!-- A first level in the left side menu is needed
40 + before using action= attribute -->
41 + <menuitem id="openacademy_menu" name="Open Academy"
42 + parent="main_openacademy_menu"/>
43 + <!-- the following menuitem should appear *after*
44 + its parent openacademy_menu and *after* its
45 + action course_list_action -->
46 + <menuitem id="courses_menu" name="Courses" parent="openacademy_menu"
47 + action="course_list_action"/>
48 + <!-- Full id location:
49 + action="openacademy.course_list_action"
50 + It is not required when it is the same module -->