Followers can now be partners or channels. Partners following a document will receive needaction, as previously. However people can follow documents through channels. Members of a channel are able to listen to a stream of messages using the channel. Those messages do not create needaction messages. It is therefore possible to follow documents without receiving too much notifications. For interesting documents subscribing with its partner will create notification. message_follower_ids fields is udpated. It is now a many2many to mail.followers, not to res.partner anymore. A subscription can be either a partner (partner_id) or a channel (channel_id). Some access rules have been updated accordingly.
33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- wizard view -->
|
|
<record model="ir.ui.view" id="mail_wizard_invite_form">
|
|
<field name="name">Add Followers</field>
|
|
<field name="model">mail.wizard.invite</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Add Followers">
|
|
<group>
|
|
<field name="res_model" invisible="1"/>
|
|
<field name="res_id" invisible="1"/>
|
|
<field name="partner_ids" widget="many2many_tags_email"
|
|
placeholder="Add contacts to notify..."
|
|
context="{'force_email':True, 'show_email':True}"/>
|
|
<field name="channel_ids" widget="many2many_tags"
|
|
placeholder="Add channels to notify..."/>
|
|
<field name="send_mail"/>
|
|
<field name="message" attrs="{'invisible': [('send_mail','!=',True)]}" options="{'style-inline': true}" class="test_message"/>
|
|
</group>
|
|
<footer>
|
|
<button string="Add Followers"
|
|
name="add_followers" type="object" class="btn-primary"/>
|
|
<button string="Cancel" class="btn-default" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|