summaryrefslogtreecommitdiff
path: root/addons/website_slides
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2020-10-23 06:23:29 +0000
committerAurélien Warnon <awa@odoo.com>2020-10-23 06:23:29 +0000
commit7114e13736d41f2350b14367704bf14c23cf9c0d (patch)
tree5ced2a23a1d48bd99222019ecd9417896a4bda82 /addons/website_slides
parent7313e9823fffcac747af633b9b1694aa661dfa1f (diff)
[FIX] website_slides: hide "responsible" label if no responsible assigned
This commit makes a small adjustment to the course view to hide the responsible label in the course description if none is set. As this field is not required on the slide.channel model, it's not necessary to show a useless label when it's not set. Task 2368573 closes odoo/odoo#60579 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides')
-rw-r--r--addons/website_slides/views/website_slides_templates_course.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/views/website_slides_templates_course.xml b/addons/website_slides/views/website_slides_templates_course.xml
index a294b9bd3cb..b53deb2a664 100644
--- a/addons/website_slides/views/website_slides_templates_course.xml
+++ b/addons/website_slides/views/website_slides_templates_course.xml
@@ -351,7 +351,7 @@
<div id="o_wslides_sidebar_collapse" class="collapse d-md-block">
<table class="table table-sm mt-3">
- <tr>
+ <tr t-if="channel.user_id">
<th class="border-top-0">Responsible</th>
<td class="border-top-0"><span t-field="channel.user_id"/></td>
</tr>