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

Hello,

I'm trying to make a module named travel_leave which inherits the "Leave Managements" module.

To create a new menuitem called "Travel leave request". It supposed to inherit and appear right after the "Leave request" menuitem under "Leaves" menu.

So how can I do it?

Here's my code in travel_leave_view.xml

<menuitem name="Travel Request"

id="hr_holidays.menu_travel_request"

parent="hr_holidays.menu_open_ask_holidays"

sequence="10"/>

By doing this it created a new menuitem under Leaves but yet it isn't listed among the other menuitems.

 

What is wrong in my code?

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

I think you must define  

action="travel_request_action"

after

sequence = "10"



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

Thank you. You're awesome :D

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2907
1
thg 2 21
7198
1
thg 11 21
11156
4
thg 8 20
11760
6
thg 1 19
25933