diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-09-05 15:28:22 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-09-05 15:28:22 +0200 |
| commit | 31bf30d2d0eb78baaa36360b99fe58bf7cd4c9e7 (patch) | |
| tree | d7be61ecd6bb4c8b5552e39b03e2a64eebbbf323 /doc/howtos/backend/exercise-basic-action | |
| parent | afba9e8817c458640ae446ac7aaaab79be4fe1e9 (diff) | |
| parent | ed1c173971968eaa96693cb4e1547efa6e6c34e0 (diff) | |
[MERGE] forward port of branch 8.0 up to ed1c173
Diffstat (limited to 'doc/howtos/backend/exercise-basic-action')
| -rw-r--r-- | doc/howtos/backend/exercise-basic-action | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/howtos/backend/exercise-basic-action b/doc/howtos/backend/exercise-basic-action new file mode 100644 index 00000000000..1287315653f --- /dev/null +++ b/doc/howtos/backend/exercise-basic-action @@ -0,0 +1,54 @@ +# HG changeset patch +# Parent 16e4cb131d9f7f3a72a8a1b0bc46c2ce9ac76435 +Index: addons/openacademy/__openerp__.py +=================================================================== +--- addons.orig/openacademy/__openerp__.py 2014-08-26 17:25:53.519783468 +0200 ++++ addons/openacademy/__openerp__.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"?> ++<openerp> ++ <data> ++ <!-- 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 paret --> ++ <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 --> ++ </data> ++</openerp> |
