website_blog_data.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <record id="blog_blog_1" model="blog.blog">
  5. <field name="name">Our News</field>
  6. <field name="subtitle">Sharing our evolution with passion</field>
  7. <field name="description">Presentation of new Odoo features</field>
  8. </record>
  9. <record id="menu_news" model="website.menu">
  10. <field name="name">News</field>
  11. <field name="url" eval="'/blog/'+str(ref('website_blog.blog_blog_1'))"/>
  12. <field name="parent_id" ref="website.main_menu"/>
  13. <field name="sequence" type="int">40</field>
  14. </record>
  15. </data>
  16. <data>
  17. <!-- jump to blog at install -->
  18. <record id="action_open_website" model="ir.actions.act_url">
  19. <field name="name">Website Blogs</field>
  20. <field name="target">self</field>
  21. <field name="url" eval="'/blog/'+str(ref('website_blog.blog_blog_1'))+'/#tutorial.blog=true'"/>
  22. </record>
  23. <record id="base.open_menu" model="ir.actions.todo">
  24. <field name="action_id" ref="action_open_website"/>
  25. <field name="state">open</field>
  26. </record>
  27. <!-- Blog-related subtypes for messaging / Chatter -->
  28. <record id="mt_blog_blog_published" model="mail.message.subtype">
  29. <field name="name">Published Post</field>
  30. <field name="res_model">blog.blog</field>
  31. <field name="default" eval="True"/>
  32. <field name="description">Published Post</field>
  33. </record>
  34. </data>
  35. </openerp>