[FIX] Blog views refering to incorrect old field name page_id changed to post_id
authorNhomar - Vauxoo <nhomar@gmail.com>
Fri, 29 Nov 2013 08:13:35 +0000 (03:43 -0430)
committerNhomar - Vauxoo <nhomar@gmail.com>
Fri, 29 Nov 2013 08:13:35 +0000 (03:43 -0430)
bzr revid: nhomar@gmail.com-20131129081335-b9ktgx7t9b5gyqhn

addons/website_blog/views/website_blog_views.xml

index f817267..fc26474 100644 (file)
                 <tree string="Document History">
                     <field name="create_date"/>
                     <field name="create_uid"/>
-                    <field name="page_id"/>
+                    <field name="post_id"/>
                 </tree>
             </field>
         </record>
             <field name="model">blog.post.history</field>
             <field name="arch" type="xml">
                 <form string="Blog Post History" version="7.0">
-                    <label for="page_id" class="oe_edit_only"/>
-                    <h1><field name="page_id" select="1" /></h1>
+                    <label for="post_id" class="oe_edit_only"/>
+                    <h1><field name="post_id" select="1" /></h1>
                     <label for="create_date" class="oe_edit_only"/>
                     <field name="create_date" readonly="1"/>
                     <label for="content" class="oe_edit_only"/>
         <menuitem id="menu_page_history" parent="menu_wiki" name="Pages history" action="action_history" sequence="30" groups="base.group_no_one"/>
         <act_window
             id="action_related_page_history"
-            context="{'search_default_page_id': [active_id], 'default_page_id': active_id}"
-            domain="[('page_id','=',active_id)]"
+            context="{'search_default_post_id': [active_id], 'default_post_id': active_id}"
+            domain="[('post_id','=',active_id)]"
             name="Page History"
             res_model="blog.post.history"
             src_model="blog.post"/>