Skip to content

Commit

Permalink
[FIX] add xmlid to lectures so they don't get duplicated on -i updates
Browse files Browse the repository at this point in the history
  • Loading branch information
xmo-odoo committed May 19, 2014
1 parent 2f26093 commit 43523d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions doc/howto/howto_website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,6 @@ Let us, then, create a menu and an action for our lectures:

.. patch::

.. todo:: reinstall module? update?

If you reload the backend, you should see a new menu :menuselection:`Academy`
at the top-left corner, before :menuselection:`Messaging`. In it is the
submenus we defined via ``menuitem``, and within (the first submenu is
Expand Down
12 changes: 6 additions & 6 deletions doc/howto/howto_website/lectures-model-add
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# HG changeset patch
# Parent dc6e1146075f61db66b1f7d2b7d3b8e76341e7bb
# Parent cd98e5752eedca2780da80387ac01c8cd166940f

diff --git a/__openerp__.py b/__openerp__.py
--- a/__openerp__.py
Expand Down Expand Up @@ -38,23 +38,23 @@ new file mode 100644
@@ -0,0 +1,24 @@
+<openerp>
+ <data>
+ <record model="academy.lectures">
+ <record model="academy.lectures" id="lecture1">
+ <field name="name">Lecture 1</field>
+ <field name="date">2014-01-06</field>
+ </record>
+ <record model="academy.lectures">
+ <record model="academy.lectures" id="lecture2">
+ <field name="name">Lecture 2</field>
+ <field name="date">2014-01-08</field>
+ </record>
+ <record model="academy.lectures">
+ <record model="academy.lectures" id="lecture3">
+ <field name="name">Lecture 3</field>
+ <field name="date">2014-01-10</field>
+ </record>
+ <record model="academy.lectures">
+ <record model="academy.lectures" id="lecture4">
+ <field name="name">Lecture 4</field>
+ <field name="date">2014-01-13</field>
+ </record>
+ <record model="academy.lectures">
+ <record model="academy.lectures" id="lecture5">
+ <field name="name">Lecture 5</field>
+ <field name="date">2014-01-15</field>
+ </record>
Expand Down

0 comments on commit 43523d4

Please sign in to comment.