Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1847 มุมมอง

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 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
1607
0
มิ.ย. 24
1092
eLearning quiz functionality แก้ไขแล้ว
2
ก.พ. 24
5046
0
ธ.ค. 23
1201
0
ธ.ค. 23
1246