summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src/xml
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2020-10-07 11:11:25 +0000
committerHiral Bhavsar <hbh@odoo.com>2020-10-15 11:01:19 +0000
commitbecf051f38fcf08d4a0aea758cb2758ad0f25bc3 (patch)
treef64decac8b5a90d49fd8a3ba4a2b781d5637335c /addons/website_slides/static/src/xml
parent43db576b7f0efed563ee597ab087e4d7ef5c74d9 (diff)
[FIX] mail, website_slides: fix while accept the request from the new attendee
Before this commit: We have a new feature that if the course is private, and attendee make the request to access the course it will create an activity for 'course responsible'. Currently, after accepting the invitation request from the new user, it is still not considered the user as an attendee and not displaying like 'You're enrolled' to the respective users After this commit: The features of access invitation on courses will be workable. Task-2328389 closes odoo/odoo#59504 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/website_slides/static/src/xml')
-rw-r--r--addons/website_slides/static/src/xml/activity.xml18
1 files changed, 17 insertions, 1 deletions
diff --git a/addons/website_slides/static/src/xml/activity.xml b/addons/website_slides/static/src/xml/activity.xml
index 20c683ab3c4..a2f5b2c015b 100644
--- a/addons/website_slides/static/src/xml/activity.xml
+++ b/addons/website_slides/static/src/xml/activity.xml
@@ -19,4 +19,20 @@
</t>
</t>
</t>
-</templates> \ No newline at end of file
+
+ <t t-inherit="mail.Activity" t-inherit-mode="extension">
+ <xpath expr="//*[@name='tools']" position="replace">
+ <t t-if="activity.requestingPartner and activity.thread.model === 'slide.channel'">
+ <div class="o_Activity_tools">
+ <button class="o_Activity_toolButton o_Activity_grantAccessButton btn btn-link" t-on-click="_onGrantAccess">
+ <i class="fa fa-check"/> Grant Access
+ </button>
+ <button class="o_Activity_toolButton o_Activity_refuseAccessButton btn btn-link" t-on-click="_onRefuseAccess">
+ <i class="fa fa-times"/> Refuse Access
+ </button>
+ </div>
+ </t>
+ <t t-else="">$0</t>
+ </xpath>
+ </t>
+</templates>