2008-11-14 07:17:24 +00:00
|
|
|
<?xml version="1.0"?>
|
2008-11-21 15:09:23 +00:00
|
|
|
<openerp>
|
2008-11-21 16:37:59 +00:00
|
|
|
<data>
|
[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
|
|
|
<menuitem name="Knowledge" id="knowledge.menu_document"/>
|
|
|
|
<menuitem name="Pages" id="menu_wiki" parent="knowledge.menu_document" sequence="20" />
|
2010-02-04 05:24:08 +00:00
|
|
|
|
[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
|
|
|
<!-- Category views -->
|
|
|
|
<record model="ir.ui.view" id="view_blog_category_list">
|
|
|
|
<field name="name">blog.category.list</field>
|
|
|
|
<field name="model">blog.category</field>
|
2009-09-24 10:46:21 +00:00
|
|
|
<field name="arch" type="xml">
|
[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
|
|
|
<tree string="Blog Categories">
|
2009-09-24 10:46:21 +00:00
|
|
|
<field name="name"/>
|
|
|
|
</tree>
|
|
|
|
</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
|
|
|
<record model="ir.ui.view" id="view_blog_category_form">
|
|
|
|
<field name="name">blog.category.form</field>
|
|
|
|
<field name="model">blog.category</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Blog Category" version="7.0">
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="description"/>
|
|
|
|
<field name="template" widget="html"/>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
|
|
|
|
<field name="message_ids" widget="mail_thread" options='{"thread_level": 1}' placeholder="Send a message to the group"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- page list view -->
|
|
|
|
<record model="ir.ui.view" id="view_blog_post_list">
|
|
|
|
<field name="name">blog.post.list</field>
|
|
|
|
<field name="model">blog.post</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="arch" type="xml">
|
[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
|
|
|
<tree string="Blog Posts">
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="name"/>
|
[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
|
|
|
<field name="category_id"/>
|
2013-02-15 10:54:46 +00:00
|
|
|
<field name="create_uid" invisible="1"/>
|
2012-08-09 13:29:01 +00:00
|
|
|
<field name="write_uid"/>
|
|
|
|
<field name="write_date"/>
|
2008-11-21 16:37:59 +00:00
|
|
|
</tree>
|
|
|
|
</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
|
|
|
<!-- page form view -->
|
|
|
|
<record model="ir.ui.view" id="view_blog_post_form">
|
|
|
|
<field name="name">blog.post.form</field>
|
|
|
|
<field name="model">blog.post</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="arch" type="xml">
|
[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
|
|
|
<form string="Blog Post" version="7.0">
|
|
|
|
<sheet>
|
|
|
|
<h1><field name="name" placeholder="Name"/></h1>
|
|
|
|
<field name="tag_ids" widget="many2many_tags"/>
|
2013-09-20 13:12:26 +00:00
|
|
|
<group>
|
|
|
|
<field name="category_id" string="Category"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="write_uid" groups="base.group_no_one"/>
|
|
|
|
<field name="write_date" groups="base.group_no_one"/>
|
|
|
|
<field name="menu_id" groups="base.group_no_one"/>
|
2012-08-10 00:09:08 +00:00
|
|
|
</group>
|
[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
|
|
|
<div class="oe_document_page">
|
|
|
|
<field name="content" placeholder="e.g. Once upon a time..." widget="html"/>
|
|
|
|
</div>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
|
|
|
|
<field name="message_ids" widget="mail_thread" options='{"thread_level": 1}' placeholder="Send a message to the group"/>
|
2012-08-10 23:13:07 +00:00
|
|
|
</div>
|
2008-11-21 16:37:59 +00:00
|
|
|
</form>
|
|
|
|
</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
|
|
|
<!-- page search view -->
|
|
|
|
<record model="ir.ui.view" id="view_blog_post_search">
|
|
|
|
<field name="name">blog.post.search</field>
|
|
|
|
<field name="model">blog.post</field>
|
2009-12-09 13:38:11 +00:00
|
|
|
<field name="arch" type="xml">
|
[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
|
|
|
<search string="Blog Post">
|
2012-08-10 00:31:04 +00:00
|
|
|
<field name="name" string="Content" filter_domain="['|', ('name','ilike',self), ('content','ilike',self)]"/>
|
2011-03-15 12:41:11 +00:00
|
|
|
<field name="write_uid"/>
|
[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
|
|
|
<field name="category_id"/>
|
2011-03-15 14:08:59 +00:00
|
|
|
<group expand="0" string="Group By...">
|
[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
|
|
|
<filter string="Category" domain="[]" context="{'group_by': 'category_id'}"/>
|
|
|
|
<filter string="Author" domain="[]" context="{'group_by': 'create_uid'}"/>
|
|
|
|
<filter string="Last Contributor" domain="[]" context="{'group_by': 'write_uid'}"/>
|
2009-12-09 13:38:11 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
</record>
|
2012-08-10 00:09:08 +00:00
|
|
|
<!-- page action -->
|
[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
|
|
|
<record model="ir.actions.act_window" id="action_blog_post">
|
|
|
|
<field name="name">Blog Posts</field>
|
|
|
|
<field name="res_model">blog.post</field>
|
2012-08-10 22:50:46 +00:00
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
[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
|
|
|
<field name="view_id" ref="view_blog_post_list"/>
|
|
|
|
<field name="search_view_id" ref="view_blog_post_search"/>
|
2013-03-22 09:16:25 +00:00
|
|
|
<field name="help" type="html">
|
[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
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click to create a new blog post.
|
|
|
|
</p>
|
2013-03-22 09:16:25 +00:00
|
|
|
</field>
|
2012-08-10 22:50:46 +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
|
|
|
<menuitem id="menu_page" parent="menu_wiki" name="Pages" action="action_blog_post" sequence="10"/>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_blog_category">
|
2012-09-09 10:43:40 +00:00
|
|
|
<field name="name">Category</field>
|
[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
|
|
|
<field name="res_model">blog.category</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="view_type">form</field>
|
2008-11-21 18:12:32 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2009-09-24 10:46:21 +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
|
|
|
<menuitem id="menu_category" parent="menu_wiki" name="Categories" action="action_blog_category" sequence="20"/>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2010-09-16 17:52:58 +00:00
|
|
|
<!-- History Tree view -->
|
[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
|
|
|
<record model="ir.ui.view" id="view_blog_history_tree">
|
|
|
|
<field name="name">blog.post.history.tree</field>
|
|
|
|
<field name="model">blog.post.history</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-08-03 15:46:41 +00:00
|
|
|
<tree string="Document History">
|
2008-11-24 06:49:47 +00:00
|
|
|
<field name="create_date"/>
|
2012-08-10 00:09:08 +00:00
|
|
|
<field name="create_uid"/>
|
|
|
|
<field name="page_id"/>
|
2008-11-21 16:37:59 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-09-16 17:52:58 +00:00
|
|
|
<!-- History Form view -->
|
[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
|
|
|
<record model="ir.ui.view" id="view_blog_history_form">
|
|
|
|
<field name="name">blog.post.history.form</field>
|
|
|
|
<field name="model">blog.post.history</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="arch" type="xml">
|
[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
|
|
|
<form string="Blog Post History" version="7.0">
|
2012-08-10 00:09:08 +00:00
|
|
|
<label for="page_id" class="oe_edit_only"/>
|
|
|
|
<h1><field name="page_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"/>
|
|
|
|
<field name="content" colspan="4"/>
|
2008-11-21 16:37:59 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-09-16 17:52:58 +00:00
|
|
|
<!-- History Action -->
|
2008-11-21 16:37:59 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_history">
|
2012-08-10 00:09:08 +00:00
|
|
|
<field name="name">Page history</field>
|
[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
|
|
|
<field name="res_model">blog.post.history</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
<field name="view_type">form</field>
|
2008-11-21 18:12:32 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2008-11-21 16:37:59 +00:00
|
|
|
</record>
|
2012-08-10 22:50:46 +00:00
|
|
|
<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"
|
2012-08-10 00:09:08 +00:00
|
|
|
context="{'search_default_page_id': [active_id], 'default_page_id': active_id}"
|
2012-08-10 22:50:46 +00:00
|
|
|
domain="[('page_id','=',active_id)]"
|
2009-09-24 10:46:21 +00:00
|
|
|
name="Page History"
|
[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
|
|
|
res_model="blog.post.history"
|
|
|
|
src_model="blog.post"/>
|
|
|
|
<!-- <act_window
|
2012-08-10 22:50:46 +00:00
|
|
|
id="action_related_page_create_menu"
|
|
|
|
name="Create Menu"
|
[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
|
|
|
res_model="blog.post.create.menu"
|
2012-08-10 22:50:46 +00:00
|
|
|
target="new"
|
|
|
|
view_type="form"
|
|
|
|
view_mode="form"
|
[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
|
|
|
src_model="blog.post"/> -->
|
2008-11-21 17:15:13 +00:00
|
|
|
|
2008-11-21 16:37:59 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|