2012-01-31 15:52:57 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
2012-01-31 15:54:12 +00:00
|
|
|
<data>
|
2012-08-19 17:53:09 +00:00
|
|
|
<!-- this record will be dynamically adapted to each new menu created -->
|
2012-08-14 09:07:19 +00:00
|
|
|
<record id="action_mail_group_feeds" model="ir.actions.client">
|
|
|
|
<field name="name">Discussion Group</field>
|
|
|
|
<field name="tag">mail.wall</field>
|
2012-08-23 14:26:22 +00:00
|
|
|
<field name="res_model">mail.message</field>
|
2012-11-14 12:20:33 +00:00
|
|
|
<field name="context">{
|
|
|
|
'search_default_message_unread': True
|
|
|
|
}</field>
|
|
|
|
<field name="params">{
|
|
|
|
'read_action': 'read'
|
|
|
|
}</field>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p>
|
|
|
|
No message in this group.
|
|
|
|
</p>
|
|
|
|
</field>
|
2012-08-14 09:07:19 +00:00
|
|
|
</record>
|
2012-06-21 16:18:53 +00:00
|
|
|
|
|
|
|
<!-- Group Kanban View !-->
|
2012-01-31 15:54:12 +00:00
|
|
|
<record model="ir.ui.view" id="view_group_kanban">
|
|
|
|
<field name="name">mail.group.kanban</field>
|
|
|
|
<field name="model">mail.group</field>
|
|
|
|
<field name="priority" eval="10"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<kanban>
|
2012-08-22 11:03:13 +00:00
|
|
|
<field name="message_follower_ids"/>
|
2012-09-24 09:56:16 +00:00
|
|
|
<field name="message_is_follower"/>
|
2012-08-20 13:38:38 +00:00
|
|
|
<field name="message_summary"/>
|
2012-09-24 09:56:16 +00:00
|
|
|
<field name="description"/>
|
2012-01-31 15:54:12 +00:00
|
|
|
<templates>
|
2012-03-07 17:02:54 +00:00
|
|
|
<t t-name="kanban-description">
|
|
|
|
<div class="oe_group_description" t-if="record.description.raw_value">
|
|
|
|
<field name="description"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
2012-01-31 15:54:12 +00:00
|
|
|
<t t-name="kanban-box">
|
2012-09-04 16:37:25 +00:00
|
|
|
<div t-attf-class="{record.message_is_follower.raw_value} oe_group_vignette oe_semantic_html_override">
|
2012-01-31 15:54:12 +00:00
|
|
|
<div class="oe_group_image">
|
2012-08-29 11:48:47 +00:00
|
|
|
<a type="open"><img t-att-src="kanban_image('mail.group', 'image_medium', record.id.value)" class="oe_group_photo" tooltip="kanban-description"/></a>
|
2012-01-31 15:54:12 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_group_details">
|
2012-08-29 11:48:47 +00:00
|
|
|
<h4><a type="open"><field name="name"/></a></h4>
|
2012-11-12 23:04:18 +00:00
|
|
|
<div class="oe_grey">
|
|
|
|
<field name="description"/>
|
|
|
|
</div>
|
2012-11-12 22:52:07 +00:00
|
|
|
<div class="oe_kanban_footer_left">
|
|
|
|
<t t-raw="record.message_summary.raw_value"/>
|
|
|
|
</div>
|
|
|
|
<div class="oe_group_button">
|
2012-11-12 23:19:09 +00:00
|
|
|
<button t-if="record.message_is_follower.raw_value" name="action_unfollow" type="object" class="oe_group_join">Unfollow</button>
|
|
|
|
<button t-if="! record.message_is_follower.raw_value" name="action_follow" type="object">Join Group</button>
|
2012-11-12 22:52:07 +00:00
|
|
|
</div>
|
2012-01-31 15:54:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Group Form View !-->
|
|
|
|
<record model="ir.ui.view" id="view_group_form">
|
|
|
|
<field name="name">mail.group.form</field>
|
|
|
|
<field name="model">mail.group</field>
|
|
|
|
<field name="priority" eval="10"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-21 16:18:53 +00:00
|
|
|
<form string="Group Form" version="7.0">
|
2012-06-12 08:18:50 +00:00
|
|
|
<sheet class="openerp_mail_group_sheet">
|
2012-09-03 12:06:21 +00:00
|
|
|
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
|
2012-08-14 06:51:36 +00:00
|
|
|
<div class="oe_title">
|
|
|
|
<div class="oe_edit_only">
|
2012-08-20 17:23:48 +00:00
|
|
|
<label for="name" string="Group Name"/>
|
|
|
|
</div>
|
2012-09-25 08:38:11 +00:00
|
|
|
<h1><field name="name" readonly="0"/></h1>
|
2012-08-14 12:30:50 +00:00
|
|
|
<div name="alias_box" colspan="4" attrs="{'invisible': [('alias_domain', '=', False)]}">
|
|
|
|
<field name="alias_id" invisible="1" required="0"/>
|
|
|
|
<label for="alias_name" class="oe_edit_only"/>
|
|
|
|
<field name="alias_name" nolabel="1" class="oe_inline" attrs="{'required': [('alias_id', '!=', False)]}"/>@<field name="alias_domain" nolabel="1" class="oe_inline"/>
|
|
|
|
</div>
|
2012-08-14 06:51:36 +00:00
|
|
|
<field name="description" placeholder="Topics discussed in this group..."/>
|
|
|
|
</div>
|
|
|
|
<div class="oe_clear"/>
|
2012-11-24 17:53:19 +00:00
|
|
|
<group>
|
2012-08-14 06:51:36 +00:00
|
|
|
<group class="oe_edit_only">
|
2012-11-24 17:53:19 +00:00
|
|
|
<field name="public"/>
|
|
|
|
<field name="group_public_id"
|
2012-08-14 11:29:42 +00:00
|
|
|
attrs="{'invisible': [('public','<>','groups')], 'required': [('public','=','groups')]}"
|
|
|
|
/>
|
2012-11-24 17:53:19 +00:00
|
|
|
<field name="group_ids" widget="many2many_tags"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<div class="oe_grey" attrs="{'invisible': [('public','<>','public')]}">
|
|
|
|
This group is visible by everyone,
|
|
|
|
including your customers if you installed
|
|
|
|
the portal module.
|
|
|
|
</div>
|
|
|
|
<div class="oe_grey" attrs="{'invisible': [('public','<>','private')]}">
|
|
|
|
Only the invited followers can read the
|
|
|
|
discussions on this group.
|
|
|
|
</div>
|
2012-05-15 11:49:58 +00:00
|
|
|
</group>
|
2012-03-08 17:20:29 +00:00
|
|
|
</group>
|
2012-05-15 11:49:58 +00:00
|
|
|
</sheet>
|
2012-08-14 06:51:36 +00:00
|
|
|
<div class="oe_chatter">
|
2012-11-21 13:57:21 +00:00
|
|
|
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
|
2012-11-15 08:34:00 +00:00
|
|
|
<field name="message_ids" widget="mail_thread" options='{"thread_level": 1}' placeholder="Send a message to the group..."/>
|
2012-06-21 21:55:27 +00:00
|
|
|
</div>
|
2012-01-31 15:54:12 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-03-07 15:10:27 +00:00
|
|
|
<!-- Group List View !-->
|
|
|
|
<record model="ir.ui.view" id="view_group_tree">
|
|
|
|
<field name="name">mail.group.tree</field>
|
|
|
|
<field name="model">mail.group</field>
|
|
|
|
<field name="priority" eval="10"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Groups">
|
2012-08-14 09:07:19 +00:00
|
|
|
<field name="name" string="Group Name"/>
|
2012-03-07 15:10:27 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Group Search View !-->
|
|
|
|
<record model="ir.ui.view" id="view_group_search">
|
|
|
|
<field name="name">mail.group.search</field>
|
|
|
|
<field name="model">mail.group</field>
|
|
|
|
<field name="priority" eval="10"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-18 06:50:45 +00:00
|
|
|
<search string="Search Groups">
|
2012-06-22 11:12:51 +00:00
|
|
|
<field name="name" string="Group"/>
|
2012-03-07 15:10:27 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-01-31 15:54:12 +00:00
|
|
|
<!-- group record !-->
|
2012-02-01 15:42:13 +00:00
|
|
|
<record id="action_view_groups" model="ir.actions.act_window">
|
2012-08-20 17:23:48 +00:00
|
|
|
<field name="name">Join a group</field>
|
2012-01-31 15:54:12 +00:00
|
|
|
<field name="res_model">mail.group</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
2012-03-07 15:10:27 +00:00
|
|
|
<field name="search_view_id" ref="view_group_search"/>
|
2012-01-31 15:54:12 +00:00
|
|
|
</record>
|
|
|
|
|
2012-03-07 15:10:27 +00:00
|
|
|
<!-- left-side menu: Groups !-->
|
2012-08-14 11:22:04 +00:00
|
|
|
<menuitem id="mail_group_root" parent="mail_feeds_main" sequence="12" name="My Groups"/>
|
2012-08-20 17:23:48 +00:00
|
|
|
<menuitem id="mail_allgroups" parent="mail_group_root" sequence="100" action="action_view_groups"/>
|
2012-01-31 15:54:12 +00:00
|
|
|
</data>
|
2012-03-07 15:10:27 +00:00
|
|
|
</openerp>
|