2012-01-31 15:52:57 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
2012-01-31 15:54:12 +00:00
|
|
|
<data>
|
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>
|
|
|
|
<field name="params" eval="{'search_view_id': ref('view_message_search_wall')}"/>
|
|
|
|
</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>
|
|
|
|
<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-04-02 13:43:54 +00:00
|
|
|
<div t-attf-class="{record.is_subscriber.raw_value} oe_group_vignette">
|
2012-01-31 15:54:12 +00:00
|
|
|
<div class="oe_group_image">
|
2012-06-27 14:58:58 +00:00
|
|
|
<a type="edit"><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">
|
|
|
|
<h4><a type="edit"><field name="name"/></a></h4>
|
2012-04-02 13:43:54 +00:00
|
|
|
<span style="display: none;"><field name="is_subscriber"/></span>
|
2012-01-31 15:54:12 +00:00
|
|
|
<ul>
|
2012-04-02 13:43:54 +00:00
|
|
|
<li><field name="member_count"/> members</li>
|
2012-04-04 16:00:56 +00:00
|
|
|
<li t-if="! record.is_subscriber.raw_value"><a name="action_group_join" string="Join" type="object" class="oe_group_join">Not following</a></li>
|
|
|
|
<li t-if="record.is_subscriber.raw_value"><a name="action_group_leave" string="Join" type="object" class="oe_group_leave">Following</a></li>
|
2012-03-29 07:32:09 +00:00
|
|
|
<li><field name="last_month_msg_nbr"/> messages last month</li>
|
2012-01-31 15:54:12 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-03-07 17:02:54 +00:00
|
|
|
<script>
|
2012-03-29 07:32:09 +00:00
|
|
|
$('.oe_group_join').mouseover(function () { $(this).html('Follow'); }).mouseleave(function () { $(this).html('Not following'); });
|
|
|
|
$('.oe_group_leave').mouseover(function () { $(this).html('Unfollow'); }).mouseleave(function () { $(this).html('Following'); });
|
2012-03-07 17:02:54 +00:00
|
|
|
</script>
|
2012-01-31 15:54:12 +00:00
|
|
|
</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-08-14 06:51:36 +00:00
|
|
|
<field name="image_small" widget='image' class="oe_avatar oe_left"/>
|
|
|
|
<div class="oe_title">
|
|
|
|
<div class="oe_edit_only">
|
2012-08-14 09:07:19 +00:00
|
|
|
<label for="name" string="Group Name"/>
|
2012-08-14 06:51:36 +00:00
|
|
|
</div>
|
|
|
|
<h1><field name="name"/></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-08-14 11:22:04 +00:00
|
|
|
<group col="1">
|
2012-08-14 06:51:36 +00:00
|
|
|
<group class="oe_edit_only">
|
2012-08-14 11:22:04 +00:00
|
|
|
<field name="public" class="oe_inline"/>
|
|
|
|
<field name="group_public_id" class="oe_inline"
|
2012-08-14 11:29:42 +00:00
|
|
|
attrs="{'invisible': [('public','<>','groups')], 'required': [('public','=','groups')]}"
|
|
|
|
/>
|
2012-08-14 11:22:04 +00:00
|
|
|
<field name="group_ids" widget="many2many_tags" class="oe_inline"/>
|
2012-05-15 11:49:58 +00:00
|
|
|
</group>
|
2012-08-14 06:51:36 +00:00
|
|
|
<group class="oe_edit_only">
|
2012-08-14 11:22:04 +00:00
|
|
|
<field name="responsible_id" class="oe_inline"/>
|
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-07-03 12:41:11 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"
|
2012-05-15 11:49:58 +00:00
|
|
|
options='{"thread_level": 1}'/>
|
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-29 16:34:54 +00:00
|
|
|
<field name="responsible_id"/>
|
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-04-02 13:43:54 +00:00
|
|
|
<field name="responsible_id"/>
|
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-01-31 15:54:12 +00:00
|
|
|
<field name="name">Groups</field>
|
|
|
|
<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"/>
|
|
|
|
<menuitem id="mail_allgroups" parent="mail_feeds" sequence="12" action="action_view_groups"/>
|
2012-01-31 15:54:12 +00:00
|
|
|
</data>
|
2012-03-07 15:10:27 +00:00
|
|
|
</openerp>
|