Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1872 Widoki

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 


Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
1641
0
cze 24
1093
2
lut 24
5067
0
gru 23
1213
0
gru 23
1278