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.
50 lines
2.8 KiB
XML
50 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="1">
|
|
|
|
<record model="ir.rule" id="issue_project_manager_rule">
|
|
<field name="name">Project/Issue: project manager: see all</field>
|
|
<field name="model_id" ref="model_project_issue"/>
|
|
<field name="domain_force">[(1, '=', 1)]</field>
|
|
<field name="groups" eval="[(4,ref('project.group_project_manager'))]"/>
|
|
</record>
|
|
|
|
<record model="ir.rule" id="issue_user_rule">
|
|
<field name="name">Project/Issue: employees: employee or (followers and following)</field>
|
|
<field name="model_id" ref="model_project_issue"/>
|
|
<field name="domain_force">['|',
|
|
('project_id.privacy_visibility', '=', 'employees'),
|
|
'&',
|
|
('project_id.privacy_visibility', '=', 'followers'),
|
|
('message_partner_ids', 'in', [user.partner_id.id]),
|
|
]</field>
|
|
<field name="groups" eval="[(4,ref('base.group_user'))]"/>
|
|
</record>
|
|
|
|
<record id="portal_issue_rule" model="ir.rule">
|
|
<field name="name">Project/Issue: portal users: (portal and colleagues following) or (followers and following)</field>
|
|
<field name="model_id" ref="project_issue.model_project_issue"/>
|
|
<field name="domain_force">['|',
|
|
'&',
|
|
('project_id.privacy_visibility', '=', 'portal'),
|
|
('message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
|
|
'&',
|
|
('project_id.privacy_visibility', '=', 'followers'),
|
|
('message_partner_ids', 'in', [user.partner_id.id]),
|
|
]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
|
|
</record>
|
|
|
|
<record model="ir.rule" id="project_issue.issue_user_rule">
|
|
<field name="name">Project/Issue: employees: portal, employee or (followers and following)</field>
|
|
<field name="domain_force">['|',
|
|
('project_id.privacy_visibility', 'in', ['portal', 'employees']),
|
|
'&',
|
|
('project_id.privacy_visibility', '=', 'followers'),
|
|
('message_partner_ids', 'in', [user.partner_id.id]),
|
|
]</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|