跳至內容
選單
此問題已被標幟
2 回覆
2013 瀏覽次數

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
1844
0
6月 24
1109
2
2月 24
5145
0
12月 23
1313
0
12月 23
1469