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 can i add a menuitem which display the purchase order line?(SOLVE)

By
Alcaline
on 9/8/14, 4:15 AM 694 views

I want a menu that only diplays the purhcase Order Line. how will i do that? any ideas please?

1

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 9/8/14, 5:55 AM

Normal way In custom module create sepeate purchase.order.line form view, tree view and act_window action. In the menu define act_window action.  Menu Purchase Order Line record  view purpose set  create="false" in both form and tree view tag.

thanks Prakash

Alcaline
on 9/8/14, 10:00 PM
0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 9/8/14, 6:22 AM

One way is to create the required menu from the Settings menu.

First, in order to display the model (purchase.order.line) you will first need to have a Window Action for that model.  In standard Odoo 7.0 (check from Settings >> Technical >> Actions >> Window Actions, filtering for Object purchase.order.line) you can see that the Purchases Action will display purchase.order.line (Destination Model) without any Domain.

Next, you'll need a Menu Item to access that Window Action.  From Settings >> Technical >> User Interface >> Menu Items, create a new Menu Item.  Give it a name, attach it to a parent menu (the menu under which this menu will be shown), and most importantly, in the Action field select ir.actions.act_window in the drop down box and select Purchases in the drop down box that appears next to the first drop down box.  After you save this menu, the new Menu Item will appear where it should be.  If you cannot find that menu, there might be some issues with access (Access Control List or access to the parent menus).

Note: view is not required.  If no view has been defined, Odoo will dynamically create the view when required.  If you need the information to be displayed in a specific way, you need to define the view.

If you define a new view, it is best if you also define a new Window Action so as not to affect the other displays.

The definition of view, actions, and menu item can also be included in an XML file in a module as Prakash had mentioned.

 

 

thanks John,

Alcaline
on 9/8/14, 10:00 PM

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: 9/8/14, 4:15 AM
Seen: 694 times
Last updated: 3/16/15, 8:10 AM