From 901f57382605ccb3498666d2c2120ef5143f438d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 20 Sep 2013 13:12:21 +0200 Subject: [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 --- addons/document_page/document_page_view.xml | 172 +++++++++++++++------------- 1 file changed, 92 insertions(+), 80 deletions(-) (limited to 'addons/document_page/document_page_view.xml') diff --git a/addons/document_page/document_page_view.xml b/addons/document_page/document_page_view.xml index 9d02b47d265..5cbc947e172 100644 --- a/addons/document_page/document_page_view.xml +++ b/addons/document_page/document_page_view.xml @@ -1,116 +1,128 @@ - - + + - - - document.page.tree - document.page - child_ids - 100 + + + blog.category.list + blog.category - + - - - - - document.page.list - document.page + + blog.category.form + blog.category + +
+ + + + + + + +
+ + +
+
+
+
+ + + + blog.post.list + blog.post - + - + - - - document.page.form - document.page + + + blog.post.form + blog.post -
- -

- - - - - - - - + + +

+ + + + + + + + + + -
-
-
- -
- +
+ +
+ +
+ +
- - - document.page.search - document.page + + + blog.post.search + blog.post - + - + - - - + + + - - Pages - document.page - [('type','=','content')] - {'default_type': 'content'} + + Blog Posts + blog.post form tree,form - - + + -

- Click to create a new web page. -

+

+ Click to create a new blog post. +

- - + + + Category - document.page - [('type','=','category')] - {'default_type': 'category'} + blog.category form tree,form - - - + - - document.page.history.tree - document.page.history + + blog.post.history.tree + blog.post.history @@ -120,11 +132,11 @@ - - document.page.history.form - document.page.history + + blog.post.history.form + blog.post.history -
+