Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2756 มุมมอง
t-name="hr_holidays.dashboard.calendar.button">





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

Hello @Sri Haari 

Hope you are doing well.

For you to remove the button from the view you will need to inherit the template and apply the d-none class on the button to hide it from the view.

You will need to place the xml file inside the web.assets_qweb in manifest file.

Below is the code. (Code check from the Comment).

Hope this would be helpful.

Thanks & Regards,
Email:    odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

อวตาร
ละทิ้ง

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-inherit="hr_holidays.dashboard.calendar.button" t-inherit-mode="extension">
<xpath expr="//button[hasclass('btn-time-off')]" position="attributes">
<attribute name="class" add="d-none" separator=" "/>
</xpath>
</t>
</templates>

For me the "new time off request" button is missing. Is it possible to make it visible from the GUI settings itself. Like from Group settings...

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
9142
Remove button when inherit a view แก้ไขแล้ว
1
ต.ค. 17
19403
0
ก.ค. 24
1474
How can i inherit this template? แก้ไขแล้ว
1
ก.ย. 23
2014
1
มิ.ย. 23
3178