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">{
|
|
|
|
}</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"/>
|
2013-04-05 11:07:37 +00:00
|
|
|
<field name="alias_id"/>
|
2014-07-01 07:35:27 +00:00
|
|
|
<field name="alias_name"/>
|
|
|
|
<field name="alias_domain"/>
|
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>
|
2014-07-01 07:35:27 +00:00
|
|
|
<div class="oe_kanban_alias" t-if="record.alias_name.value and record.alias_domain.value">
|
|
|
|
<small><i class="fa fa-envelope-o"></i> <field name="alias_id"/></small>
|
2013-04-05 11:07:37 +00:00
|
|
|
</div>
|
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">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Group Form">
|
2012-06-12 08:18:50 +00:00
|
|
|
<sheet class="openerp_mail_group_sheet">
|
2013-01-29 10:07:56 +00:00
|
|
|
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_small"}'/>
|
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>
|
2013-05-07 12:22:23 +00:00
|
|
|
<group colspan="2" name="group_alias"
|
2013-04-05 11:07:37 +00:00
|
|
|
attrs="{'invisible': [('alias_domain', '=', False)]}">
|
2014-07-01 07:35:27 +00:00
|
|
|
<label for="alias_id" string=" " class="fa fa-envelope-o" style="min-width: 20px;"/>
|
2013-05-07 12:22:23 +00:00
|
|
|
<div name="alias_def">
|
2013-06-25 08:46:30 +00:00
|
|
|
<field name="alias_id" class="oe_read_only oe_inline"
|
|
|
|
string="Email Alias" required="0"/>
|
2013-05-07 12:22:23 +00:00
|
|
|
<div class="oe_edit_only oe_inline" name="edit_alias" style="display: inline;" >
|
|
|
|
<field name="alias_name" class="oe_inline"/>@<field name="alias_domain" class="oe_inline" readonly="1"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-01 07:35:27 +00:00
|
|
|
<label for="alias_contact" string=" " class="fa fa-lock" style="min-width: 20px;"/>
|
2013-05-07 12:22:23 +00:00
|
|
|
<field name="alias_contact" class="oe_inline" nolabel="1"/>
|
|
|
|
</group>
|
2012-08-14 06:51:36 +00:00
|
|
|
</div>
|
2013-01-29 10:07:56 +00:00
|
|
|
<field name="description" placeholder="Topics discussed in this group..."/>
|
2012-08-14 06:51:36 +00:00
|
|
|
<div class="oe_clear"/>
|
2013-01-29 10:07:56 +00:00
|
|
|
<group class="oe_edit_only">
|
|
|
|
<field name="public"/>
|
|
|
|
<field name="group_public_id"
|
|
|
|
attrs="{'invisible': [('public','<>','groups')], 'required': [('public','=','groups')]}"
|
|
|
|
/>
|
|
|
|
<field name="group_ids" widget="many2many_tags"/>
|
|
|
|
</group>
|
[MERGE] Alias Visibility and Salesteams View. Improve the display of alias in form views and in empty list help messages. Improve the use, visibility and display of salesteams.
This revision adds a configuration in Settings/Sales: enable the use of sales team. If not enabled, users have access to Leads and Opportunities menus; Sales Teams menu is hidden, as well as all fields related to sales teams. If enabled, a Sales Teams menu is added that works as the Project menu. The new sales Teams kanban view allows to have an overview of the sales team (leads, opportunities, quotations, sales orders, invoices). Clicking on a link of the kanban vignette redirect to the related list/kanban view, filtered by the chosen sales team.
This revision also improves the display of help message (also shown for empty kanban views) for leads, opportunities, tasks, issues, applicants. It displays the current sales team / project / job alias, or a default alias if no context is provided.
bzr revid: tde@openerp.com-20130405151914-8892yfmsmr2xwbbk
2013-04-05 15:19:14 +00:00
|
|
|
<group attrs="{'invisible': [('public', 'not in', ['public', 'private'])]}">
|
2013-01-29 10:07:56 +00:00
|
|
|
<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-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"/>
|
2013-02-26 10:02:06 +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>
|