[REF] document_page: refactored the module, towards using it in website_blog Main modifications: - document.page is now blog.post - category is now a blog.category object, instead of a document.page with type='category' - added blog.tag model, to be able to tag posts, and a m2m relationship between blog.post and blog.tag - cleaned document.page, 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 - misc cleaning [REF] website_mail refactoring; document_page, website_blog: merge of the two modules. document_page is now contained inside website_blog, last part of the refactoring before cleaning and improving the blog feature. Usefull files have been transfered. Translations have been discarded, they will have to be re-translated again. Document_page module is now dead. Long live website_blog! The module is now called website_blog, and not based on mail.group anymore. It uses document_page module, previously renamed blog.post (see previous commits). Refactored controllers and views to work with the new model. [ADD] Added website_mail module, that holds mail-related stuff necessary for the website. This is an auto-install module. Also added templates, js and css to have a generic follow button. Based on the same principle as publish, there is now a generic button to follow or unfollow objects in openerp. This should replace all custom instance of subscription in other addons. [FIX] website: - [FIX] call write with a list of ids because I can't be arsed to handle the other case - [FIX] turns out a new mandatory positional argument blows things up a bit bzr revid: tde@openerp.com-20130923155917-ak0gwah9bh3em6ab
17 lines
516 B
XML
17 lines
516 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="1">
|
|
|
|
<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>
|
|
|
|
</data>
|
|
</openerp>
|