تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2716 أدوات العرض
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...

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
9123
1
أكتوبر 17
19357
0
يوليو 24
1433
1
سبتمبر 23
1975
1
يونيو 23
3159