Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
5634 Lượt xem

Hello,

I have created a menu Item naming Appointment letter in the hr module. On clicking that menu item it opens a wizard having fields of employee_id and date it opens a qweb report(appointment letter) which is fetching data from hr.employee model. But when I go to hr.employee model and open any employee It shows me link of that report in print dropdown. I don't want tos how my report link there. Please suggest any option which will open the report only from wizard/menu item.

any changes to be made in the following code:

<report

            id="report_for_employee_form" 

            model="hr.employee"

            name="employee_form.employee_form_report"

            file="employee_form.employee_form_report"

            report_type="qweb-html"

            string="Employee Form"/>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Use menu="False" in report definition

<report

            id="report_for_employee_form" 

            model="hr.employee"

            name="employee_form.employee_form_report"

            file="employee_form.employee_form_report"

            report_type="qweb-html"

            string="Employee Form" 

            menu="False"/>

Then it will not show under the print menu in the hr.employee.

Thanks,

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Brother :)

Câu trả lời hay nhất

Using menu="False" is not working for me with same scenario for me in Odoo 13. Do you have any suggestion? Is there anything need to be changed regarding this in Odoo 13?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 4 15
10180
0
thg 1 25
1083
2
thg 10 22
9881
0
thg 5 22
2170
2
thg 11 19
10894