Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to know menu parent id?

By
youta
on 1/11/16, 9:03 AM 370 views

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?

1
Maurice Agée
On 1/11/16, 11:46 AM

I think you must define  

action="travel_request_action"

after

sequence = "10"



Thank you. You're awesome :D

youta
on 1/12/16, 1:34 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/11/16, 9:03 AM
Seen: 370 times
Last updated: 1/12/16, 1:32 AM