t-name="hr_holidays.dashboard.calendar.button">
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
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...
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Mar 15
|
9107 | ||
Remove button when inherit a view
Diselesaikan
|
|
1
Okt 17
|
19304 | |
|
0
Jul 24
|
1400 | ||
How can i inherit this template?
Diselesaikan
|
|
1
Sep 23
|
1935 | |
|
1
Jun 23
|
3140 |