diff options
Diffstat (limited to 'doc/howtos/backend/exercise-basic-action')
| -rw-r--r-- | doc/howtos/backend/exercise-basic-action | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/doc/howtos/backend/exercise-basic-action b/doc/howtos/backend/exercise-basic-action deleted file mode 100644 index 65e788b804b..00000000000 --- a/doc/howtos/backend/exercise-basic-action +++ /dev/null @@ -1,53 +0,0 @@ -# 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,34 @@ -+<?xml version="1.0" encoding="UTF-8"?> -+<odoo> -+ -+ <!-- 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_mode">tree,form</field> -+ <field name="help" type="html"> -+ <p class="o_view_nocontent_smiling_face">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 --> -+ -+</odoo> |
