2008-11-27 15:30:14 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
[REF] document_page: refactored the module, towards using it in website_blog
Main modifications:
- category is now a blog.catory object, instead of a document.page with type='category'
- added blog.tag model, to be able to tag posts
- cleaned document.page, now blog.post model, removing type and unnecessary features
- added chatter on blog.post, blog.category
- added subtypes to enable direct follow of posts when following a category
- updated document.page.history (now blog.post.history)
- commented menu creation, because this does not seem to be necessary anymore considering the new website
- updated wizard.document.page.history.show_diff, now blog.post.history.show_diff
- updated all views accordingly, as well as demo data
- removed the use of document_user group, simplified rules on blog.post (not done for new models)
- misc cleaning
Next step: merge with website_mail
bzr revid: tde@openerp.com-20130920111221-qy3x5eoyih26axn8
2013-09-20 11:12:21 +00:00
|
|
|
<!-- <data noupdate="1"> -->
|
|
|
|
<data>
|
2012-08-03 15:46:41 +00:00
|
|
|
|
2013-09-20 14:27:01 +00:00
|
|
|
<record id="action_open_website" model="ir.actions.act_url">
|
|
|
|
<field name="name">Website Blogs</field>
|
|
|
|
<field name="target">self</field>
|
|
|
|
<field name="url">/blog</field>
|
|
|
|
</record>
|
|
|
|
<record id="base.open_menu" model="ir.actions.todo">
|
|
|
|
<field name="action_id" ref="action_open_website"/>
|
|
|
|
<field name="state">open</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-20 13:12:26 +00:00
|
|
|
<!-- CATEGORIES -->
|
|
|
|
<record id="blog_category_1" model="blog.category">
|
|
|
|
<field name="name">News</field>
|
|
|
|
<field name="description">Presentation of new OpenERP features</field>
|
|
|
|
<field name="template">
|
|
|
|
Summary of the feature
|
|
|
|
|
|
|
|
Long explanation
|
|
|
|
|
|
|
|
Conclusion
|
|
|
|
|
|
|
|
Additional ressources
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
[REF] document_page: refactored the module, towards using it in website_blog
Main modifications:
- category is now a blog.catory object, instead of a document.page with type='category'
- added blog.tag model, to be able to tag posts
- cleaned document.page, now blog.post model, removing type and unnecessary features
- added chatter on blog.post, blog.category
- added subtypes to enable direct follow of posts when following a category
- updated document.page.history (now blog.post.history)
- commented menu creation, because this does not seem to be necessary anymore considering the new website
- updated wizard.document.page.history.show_diff, now blog.post.history.show_diff
- updated all views accordingly, as well as demo data
- removed the use of document_user group, simplified rules on blog.post (not done for new models)
- misc cleaning
Next step: merge with website_mail
bzr revid: tde@openerp.com-20130920111221-qy3x5eoyih26axn8
2013-09-20 11:12:21 +00:00
|
|
|
<!-- Post-related subtypes for messaging / Chatter -->
|
|
|
|
<record id="mt_blog_post_new" model="mail.message.subtype">
|
|
|
|
<field name="name">New Post</field>
|
|
|
|
<field name="res_model">blog.post</field>
|
|
|
|
<field name="default" eval="True"/>
|
|
|
|
<field name="description">New Post</field>
|
|
|
|
</record>
|
|
|
|
<record id="mt_blog_post_published" model="mail.message.subtype">
|
|
|
|
<field name="name">Post Published</field>
|
|
|
|
<field name="res_model">blog.post</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="description">Post Published</field>
|
2008-11-27 16:31:55 +00:00
|
|
|
</record>
|
[REF] document_page: refactored the module, towards using it in website_blog
Main modifications:
- category is now a blog.catory object, instead of a document.page with type='category'
- added blog.tag model, to be able to tag posts
- cleaned document.page, now blog.post model, removing type and unnecessary features
- added chatter on blog.post, blog.category
- added subtypes to enable direct follow of posts when following a category
- updated document.page.history (now blog.post.history)
- commented menu creation, because this does not seem to be necessary anymore considering the new website
- updated wizard.document.page.history.show_diff, now blog.post.history.show_diff
- updated all views accordingly, as well as demo data
- removed the use of document_user group, simplified rules on blog.post (not done for new models)
- misc cleaning
Next step: merge with website_mail
bzr revid: tde@openerp.com-20130920111221-qy3x5eoyih26axn8
2013-09-20 11:12:21 +00:00
|
|
|
<!-- Project-related subtypes for messaging / Chatter -->
|
|
|
|
<record id="mt_blog_category_post_new" model="mail.message.subtype">
|
|
|
|
<field name="name">New Post</field>
|
|
|
|
<field name="res_model">blog.category</field>
|
|
|
|
<field name="default" eval="True"/>
|
|
|
|
<field name="parent_id" eval="ref('mt_blog_post_new')"/>
|
|
|
|
<field name="relation_field">category_id</field>
|
|
|
|
</record>
|
|
|
|
|
2008-11-27 16:31:55 +00:00
|
|
|
</data>
|
2008-11-27 15:30:14 +00:00
|
|
|
</openerp>
|