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"/>
|
2013-10-11 12:58:32 +00:00
|
|
|
<menuitem name="Blog Posts" id="menu_wiki" parent="knowledge.menu_document" sequence="20" />
|
2010-02-04 05:24:08 +00:00
|
|
|
|
2014-01-24 16:22:51 +00:00
|
|
|
<!-- Blog views -->
|
|
|
|
<record model="ir.ui.view" id="view_blog_blog_list">
|
|
|
|
<field name="name">blog.blog.list</field>
|
|
|
|
<field name="model">blog.blog</field>
|
2009-09-24 10:46:21 +00:00
|
|
|
<field name="arch" type="xml">
|
2014-01-24 16:22:51 +00:00
|
|
|
<tree string="Blogs">
|
2009-09-24 10:46:21 +00:00
|
|
|
<field name="name"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2014-01-24 16:22:51 +00:00
|
|
|
<record model="ir.ui.view" id="view_blog_blog_form">
|
|
|
|
<field name="name">blog.blog.form</field>
|
|
|
|
<field name="model">blog.blog</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="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Blog">
|
[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
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="description"/>
|
|
|
|
</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"/>
|
2014-01-24 16:22:51 +00:00
|
|
|
<field name="blog_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">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Blog Post">
|
[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
|
|
|
<sheet>
|
2014-07-01 09:24:04 +00:00
|
|
|
<group>
|
|
|
|
<field name="name" placeholder="Name"/>
|
|
|
|
<field name="tag_ids" widget="many2many_tags"/>
|
|
|
|
<field name="subtitle" placeholder="Blog Subtitle"/>
|
|
|
|
</group>
|
2013-09-20 13:12:26 +00:00
|
|
|
<group>
|
2014-01-24 16:22:51 +00:00
|
|
|
<field name="blog_id"/>
|
2013-09-20 13:12:26 +00:00
|
|
|
</group>
|
2014-03-27 05:15:28 +00:00
|
|
|
<group>
|
|
|
|
<field name="visits"/>
|
|
|
|
<field name="ranking" invisible="1"/>
|
|
|
|
</group>
|
2013-10-11 12:58:32 +00:00
|
|
|
<group string="Technical" groups="base.group_no_one">
|
|
|
|
<field name="write_uid" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'base.group_document_user']}"/>
|
|
|
|
<field name="write_date"/>
|
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
|
|
|
</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"/>
|
2014-01-24 16:22:51 +00:00
|
|
|
<field name="blog_id"/>
|
2014-05-22 09:44:35 +00:00
|
|
|
<group expand="0" string="Group By">
|
2014-01-24 16:22:51 +00:00
|
|
|
<filter string="Blog" domain="[]" context="{'group_by': 'blog_id'}"/>
|
[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="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>
|
2013-10-11 12:58:32 +00:00
|
|
|
<menuitem id="menu_page" parent="menu_wiki" name="Blog Posts" action="action_blog_post" sequence="10"/>
|
[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
|
|
|
|
2014-01-24 16:22:51 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_blog_blog">
|
|
|
|
<field name="name">Blogs</field>
|
|
|
|
<field name="res_model">blog.blog</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>
|
2014-01-24 16:22:51 +00:00
|
|
|
<menuitem id="menu_blog" parent="menu_wiki" name="Blogs" action="action_blog_blog" sequence="20"/>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2014-03-28 08:50:55 +00:00
|
|
|
<!-- History Tree view -->
|
|
|
|
<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>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Document History">
|
|
|
|
<field name="create_date"/>
|
|
|
|
<field name="create_uid"/>
|
|
|
|
<field name="post_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<!-- History Form view -->
|
|
|
|
<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>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Blog Post History">
|
2014-03-28 08:50:55 +00:00
|
|
|
<label for="post_id" class="oe_edit_only"/>
|
|
|
|
<h1><field name="post_id" select="1" /></h1>
|
|
|
|
<label for="create_date" class="oe_edit_only"/>
|
|
|
|
<field name="create_date" readonly="1"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<!-- History Action -->
|
|
|
|
<record model="ir.actions.act_window" id="action_history">
|
|
|
|
<field name="name">Page history</field>
|
|
|
|
<field name="res_model">blog.post.history</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
<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"
|
|
|
|
context="{'search_default_post_id': [active_id], 'default_post_id': active_id}"
|
|
|
|
domain="[('post_id','=',active_id)]"
|
|
|
|
name="Page History"
|
|
|
|
res_model="blog.post.history"
|
|
|
|
src_model="blog.post"/>
|
|
|
|
|
2014-11-21 14:53:13 +00:00
|
|
|
<record model="ir.ui.view" id="blog_tag_tree">
|
|
|
|
<field name="name">blog_tag_tree</field>
|
|
|
|
<field name="model">blog.tag</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Tag List" create="false">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="post_ids"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="blog_tag_form">
|
|
|
|
<field name="name">blog_tag_form</field>
|
|
|
|
<field name="model">blog.tag</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Tag Form">
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
|
|
|
</group>
|
|
|
|
<label for="post_ids" string="Used in: "/>
|
|
|
|
<field name="post_ids"/>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_tags">
|
|
|
|
<field name="name">Blog Tags</field>
|
|
|
|
<field name="res_model">blog.tag</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form,graph</field>
|
|
|
|
<field name="view_id" ref="blog_tag_tree"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem id="menu_blog_tag" parent="menu_wiki" name="Blog Tags" action="action_tags" sequence="40" />
|
2008-11-21 16:37:59 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|