Skip to Content
Menu
This question has been flagged
2 Replies
2947 Zobrazenia

I do not want to show the number of members of my courses publicly. How do I hide the number of members of an e-learning course in Odoo ?

See screenshot here 


Avatar
Zrušiť
Best Answer

Hi, can anyone tell me how i can easily (?) transform my lesson templates please ? Thanks.


Avatar
Zrušiť
Best Answer

Hi,

To hide the member data from the template in your custom module in Odoo, you can override the template in your module and remove or comment on the parts related to displaying member data. Here's how you can do it:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="course_sidebar_inherited" inherit_id="website_slides.course_sidebar" name="Course Sidebar (Custom)">
        <xpath expr="//tr[th='Members']" position="replace">
            <!-- Remove or comment out the member data -->
            <!-- <tr>
                <th>Members</th>
<td><t t-esc="channel.members_count"/></td>
            </tr> -->
        </xpath>
    </template>
</odoo>



Hope it helps


Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
apr 25
4567
0
jún 24
1257
2
feb 24
5471
0
dec 23
2042
0
dec 23
3475