summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2019-12-02 18:16:31 +0100
committerGitHub <noreply@github.com>2019-12-02 18:16:31 +0100
commitf341a48b7e86fdd1a69fa2ff054493a73c128992 (patch)
tree71ecf2aa7f452fa5e86a8b8d7fc9482879a39eb4 /doc/reference
parent98374bb0cd36b2b5ca6c8114fbe12daf39f6aa9f (diff)
parentdc89f58467aad18fa7f0b9905c543dd71bda66ea (diff)
[MERGE] mail: move website part of message and rating to mail / portal
PURPOSE Clean posting process and improve mail.message definition and comprehension. Move as much possible content from website_* modules to portal_* modules to ease their use in customer portal without having to depend on website. SPECIFICATIONS: MAIL.MESSAGE DESCRIPTION Move description from website_mail directly to mail. Anyway it is a non stored computed field and therefore having it available directly in mail does not cost anything. SPECIFICATIONS: MAIL.MESSAGE WEBSITE PUBLISHED Website mail defines a website_published field allowing to publish / unpublish comments on the frontend of some modules. This field has several drawbacks : * it is used only for front-end people (portal, public) and has no real effect in chatter / classic discussions; * it is used only in some advanced front-end module and is not available in portal by default; * its naming is not really correct as it is not linked to fields coming from the website_published mixin and its behavior is not really the same; * its use is a bit duplicated with internal flag coming from subtype allowing to hide messages related to an internal subtype; * there are overrides of standard mail.message methods just to handle this flag; In this merge we change that field by an is_internal flag directly on mail.message model itself.It tells if share people (customers, share users) are allowed to read the message. This field can be given through posting API or set manually using widgets. It is also used in access rights custom methods and managed like the internal flag of subtypes. Mailgateway was already using an internal flag for internal note replies. It is renamed to is_internal and propagated as it is now a standard field. It also eases code understanding. Portal is updated to allow managing the flag directly. It means customer portal now natively allows to moderate customer comments without any need of website modules. Rating is updated accordingly. An is_internal field is added, replacing the related on website published. Also rename subtype parameter of message_post to subtype_xmlid. In order to be more explicit subtype parameter is renamed to subtype_xmlid. It therefore clearly indicates it should be a valid subtype Xml ID. Support of ill formatted Xml IDs is removed because there is no reason to try to add some random prefix. Give something that exists or go to hell, punk ! Finally mail.message and rating.rating form views are updated to include is_internal flag and perform some view cleaning. An entry of ratings in Technical/Discuss is added for debugging / management purpose. SPECIFICATIONS: MOVE WEBSITE RATING TO PORTAL RATING Now that publish feature is replaced by internal directly in mail and portal rating portal inclusion can be done safely in a portal_rating module instead of website_rating. It allows to remove the dependency and give the rating feature of customer chatter directly in portal applications. LINKS Task ID 2071556 PR #38692 Related: odoo/enterprise#6410 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions