Skip to Content
Menu
This question has been flagged
2 Replies
2486 Views

I am on odoo V11 and I would like to hide the leave summary report that appears in the Print button under 'hr.employee' when selecting an employee.

There is another report "Employee Badge" that is easy to remove in the settings  > report. I just clicked on "Reove from print menu".

But this one for leave summary is a wizard and it is not possible to remove from setup.

I have looked at the code and I understand that the wizard launched from the print button is 

Odoo 11.0\server\odoo\addons\hr_holidays\wizard\hr_holidays_summary_employees.py


but I am not able to understand how the "Leave Summary" is added in the print button, and how to hide it.

thank you in advance for your help

Avatar
Discard
Best Answer

Hey @Laurent,

Actually its act_window created in .xml file as >

hr_holidays/wizard/hr_holidays_summary_employees_views.xml

> So you can hide using Domain too.

And if you want to delete it then you have to add code like below in your custom xml file,

<odoo>

<data noupdate="1">

<delete id="hr_holidays.action_hr_holidays_summary_employee" model="ir.actions.act_window" />

</data>

</odoo>

Thanks :)

Avatar
Discard
Author Best Answer

Thank you for this, this exactly what I was looking for.

Avatar
Discard