summaryrefslogtreecommitdiff
path: root/addons/website_slides/data
diff options
context:
space:
mode:
authorryv-odoo <ryv@odoo.com>2019-08-06 08:53:32 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-22 13:58:15 +0000
commit1b487304464e89b343dabddf315bbb9733c33dec (patch)
treebeb5f950e5f791895660348a7ead3e617f95c99a /addons/website_slides/data
parent796882b546748166bf156f20a052f4d07ce3d346 (diff)
[IMP] website_rating : allow to comment message-based ratings
PURPOSE Allow publishers to add a comment on frontend reviews with ratings. Purpose is to allow to give some feedback or context on published reviews. SPECIFICATIONS In order to answer to a rating message (review) of a course (eLearning) or a product (eCommerce) we add a way to the publisher to directly comment a review inside the website rating chatter. Any publisher can add/edit/remove comment of a rating message from the website. The goal is not to enter into a discussion but just to give a feedback. This comment is not sent or propagated to anyone, just displayed for information purpose. In portal chatter * add 1 button below a review "Comment" (for publishers of the website only) * only one comment possible by review/rating * when the comment is added, display * author name, date, comment * 2 buttons, only visible by the website publisher: edit and delete LINKS Task ID : 2026911 closes odoo/odoo#35956 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides/data')
-rw-r--r--addons/website_slides/data/slide_user_demo.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website_slides/data/slide_user_demo.xml b/addons/website_slides/data/slide_user_demo.xml
index e53fdb4cb0d..847d2bfa297 100644
--- a/addons/website_slides/data/slide_user_demo.xml
+++ b/addons/website_slides/data/slide_user_demo.xml
@@ -191,6 +191,9 @@
<field name="rating">6</field>
<field name="feedback">Interesting. Could be great to include more examples.</field>
<field name="message_id" ref="website_slides.message_channel_1_portal"/>
+ <field name="publisher_comment">Thanks for the feedback! We just updated first lessons to better include newcomers.</field>
+ <field name="publisher_id" ref="base.partner_admin"/>
+ <field name="publisher_datetime" eval="(DateTime.today() - relativedelta(days=1)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<function model="slide.channel" name="message_subscribe"