55 lines
2.3 KiB
Plaintext
55 lines
2.3 KiB
Plaintext
# HG changeset patch
|
|
# Parent 16e4cb131d9f7f3a72a8a1b0bc46c2ce9ac76435
|
|
Index: addons/openacademy/__manifest__.py
|
|
===================================================================
|
|
--- addons.orig/openacademy/__manifest__.py 2014-08-26 17:25:53.519783468 +0200
|
|
+++ addons/openacademy/__manifest__.py 2014-08-26 17:25:53.511783468 +0200
|
|
@@ -27,6 +27,7 @@
|
|
'data': [
|
|
# 'security/ir.model.access.csv',
|
|
'templates.xml',
|
|
+ 'views/openacademy.xml',
|
|
],
|
|
# only loaded in demonstration mode
|
|
'demo': [
|
|
Index: addons/openacademy/views/openacademy.xml
|
|
===================================================================
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
+++ addons/openacademy/views/openacademy.xml 2014-08-26 17:25:53.511783468 +0200
|
|
@@ -0,0 +1,35 @@
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
+<flectra>
|
|
+
|
|
+ <!-- window action -->
|
|
+ <!--
|
|
+ The following tag is an action definition for a "window action",
|
|
+ that is an action opening a view or a set of views
|
|
+ -->
|
|
+ <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_type">form</field>
|
|
+ <field name="view_mode">tree,form</field>
|
|
+ <field name="help" type="html">
|
|
+ <p class="oe_view_nocontent_create">Create the first course
|
|
+ </p>
|
|
+ </field>
|
|
+ </record>
|
|
+
|
|
+ <!-- top level menu: no parent -->
|
|
+ <menuitem id="main_openacademy_menu" name="Open Academy"/>
|
|
+ <!-- A first level in the left side menu is needed
|
|
+ before using action= attribute -->
|
|
+ <menuitem id="openacademy_menu" name="Open Academy"
|
|
+ parent="main_openacademy_menu"/>
|
|
+ <!-- the following menuitem should appear *after*
|
|
+ its parent openacademy_menu and *after* its
|
|
+ action course_list_action -->
|
|
+ <menuitem id="courses_menu" name="Courses" parent="openacademy_menu"
|
|
+ action="course_list_action"/>
|
|
+ <!-- Full id location:
|
|
+ action="openacademy.course_list_action"
|
|
+ It is not required when it is the same module -->
|
|
+
|
|
+</flectra>
|