Commit Graph
10 Commits
Author SHA1 Message Date
Thibault Delavallée e6f038a821 [REF] mail: mail_thread: followers update
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.
2015-08-21 12:11:56 +02:00
Thibault Delavallée f9993774f1 [IMP] note: user_id owner field added in model, allowing to tune a bit
the access rules, notably about reading and creation. This allows by the way
to remove the hack about the operation in context when subscribing
users on a document.
The new rules on create and read now include user_id, aka the owner of a note
can always create (default value) and read its notes.
Also removed an unnecessary field (current_partner_id), as it was buggy and
unnecessary; view udpated accordingly.

[IMP] mail: removed a hack introduced in saas-3 with the current orm operation
in context to by-pass some access rules when subscribing someone on a document.

bzr revid: tde@openerp.com-20140219111330-l3hw5324hvuikpjc
2014-02-19 12:13:30 +01:00
Xavier Morel 7a2d912964 [REM] bunch of nonsensical @model + @ref
bzr revid: xmo@openerp.com-20130429124333-p1h11fpy04y3sljy
2013-04-29 14:43:33 +02:00
Vijaykumar Baladaniya 17eeb7e740 [FIX]Give a access rule.
bzr revid: vba@tinyerp.com-20121105085213-26mi5y3t134o80ci
2012-11-05 14:22:13 +05:30
Fabien Pinckaers 819455b73c [IMP] Merging notes from chm
bzr revid: fp@tinyerp.com-20120919064235-rt1p93km8oxum8cp
2012-09-19 08:42:35 +02:00
Christophe Matthieu 4290c35f06 [MERGE] from trunk
bzr revid: chm@openerp.com-20120918152550-zdo1b9gtc3r3v6xc
2012-09-18 17:25:50 +02:00
Christophe Matthieu 313c4ef511 [IMP] note: search, css
bzr revid: chm@openerp.com-20120917123054-futj80nzfo725kiv
2012-09-17 14:30:54 +02:00
Fabien Pinckaers 5000fffb1e [MERGE] merging notes + small cleaning
bzr revid: fp@openerp.com-20120916171015-e0n1lq2a5c10a0nb
2012-09-16 19:10:15 +02:00
Christophe Matthieu a15456ba0f [FIX] note: access rules
bzr revid: chm@openerp.com-20120914101418-7bpc4aecprfz1vvt
2012-09-14 12:14:18 +02:00
Christophe Matthieu 576d664f88 [IMP] note: stage by user, group by stage, access rules
bzr revid: chm@openerp.com-20120913171938-0zmtm2ds5mjdgttj
2012-09-13 19:19:38 +02:00