跳至內容
選單
此問題已被標幟
1 回覆
6707 瀏覽次數

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?

頭像
捨棄
最佳答案

I think you must define  

action="travel_request_action"

after

sequence = "10"



頭像
捨棄
作者

Thank you. You're awesome :D

相關帖文 回覆 瀏覽次數 活動
1
11月 22
2931
1
2月 21
7231
1
11月 21
11188
4
8月 20
11796
6
1月 19
25977