콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
2 답글
1879 화면

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


아바타
취소
관련 게시물 답글 화면 활동
1
4월 25
1646
0
6월 24
1094
2
2월 24
5070
0
12월 23
1215
0
12월 23
1283