Here this template in odoo 16 hr_holidays showing a calendar in dashboard. i want to remove the dashboard in inherited custom mdule. how can I do that please help me. I also add this template in manifest
here is the default template xml version="1.0" encoding="UTF-8"?>
I inherit this view and remove calendar but its not working
<templates xml:space="preserve">
<t t-name="hr_holidays.CalendarRenderer" owl="1">
<div class="o_timeoff_calendar">
<TimeOffDashboard t-if="showDashboard" employeeId="employeeId"/>
<t t-call="web.CalendarRenderer"/>
div>
t>
templates><templates xml:space="preserve">
<t t-name="hr_holidays.CalendarRenderer" t-extend="hr_holidays.CalendarRenderer">
<xpath expr="//div[@class='o_timeoff_calendar']" position="replace"/>
t>
templates>'web.assets_backend': [
'custom_leave_management/static/src/views/inherit_calendar_view.xml',
],
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
8600
أدوات العرض
Hi ,
Please try below working code in odoo 16.
<?xml version="1.0" encoding="UTF-8"?><templates xml:space="preserve"><t t-name="custom_leave_management.CalendarRenderer" t-inherit="hr_holidays.CalendarRenderer" t-inherit-mode="extension" owl="1"> <xpath expr="//div[hasclass('o_timeoff_calendar')]" position="replace"/></t></templates>
Hope it helps
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
أغسطس 25
|
2376 | ||
|
1
يوليو 25
|
885 | ||
|
1
أغسطس 25
|
1151 | ||
|
0
مايو 25
|
1330 | ||
|
2
أبريل 25
|
3540 |