Odoo Help


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.


What is wrong with my customized Menu Items - XML

on 1/18/16, 9:55 AM 464 views

Hi everybody,

I would like to know what is wrong with my customized Menu Items.

Through the application, I am able to create some customize Menu Items.

However, I would like to be able to create it inside the Code.

For exemple: I would like to have an Item that show only canceled Quotation:

I put this inside my sale_view.xml. However after a restart I can not see my new item.


I restarted and updated the module ( with -u ).


<record id="view_quotation_cancel_tree" model="ir.ui.view">

<field name="name">sale.order.tree</field>

<field name="model">sale.order</field>

<field name="priority">5</field>

<field name="arch" type="xml">

<tree string="Quotation Canceled" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')">

<field name="message_unread" invisible="1"/>

<field name="name" string="Quotation Number"/>

<field name="date_order"/>

<field name="partner_id"/>

<field name="user_id"/>

<field name="resume_quantity"/>

<field name="resume_order_line"/>

<field name="artwork"/>

<field name="amount_untaxed" sum="Total Tax Included"/>

<field name="state"/>





     <record id="action_quotations_cancel" model="ir.actions.act_window">

<field name="name">Quotations Cancel</field>

<field name="type">ir.actions.act_window</field>

<field name="res_model">sale.order</field>

<field name="view_type">form</field>

<field name="view_id" ref="view_quotation_cancel_tree"/>

<field name="view_mode">tree,form,calendar,graph</field>

<field name="context">{}</field>

<field name="domain">[('state','in',('cancel'))]</field>

<field name="search_view_id" ref="view_sales_order_filter"/>

<field name="help" type="html">

<p class="oe_view_nocontent_create">

Click to create a quotation, the first step of a new sale.


OpenERP will help you handle efficiently the complete sale flow:

from the quotation to the sales order, the

delivery, the invoicing and the payment collection.


The social feature helps you organize discussions on each sales

order, and allow your customers to keep track of the evolution

of the sales order.





<menuitem id="menu_sale_quotations_cancel"

action="action_quotations_cancel" parent="base.menu_sales"


Someone has some idea to help me on this point?

Many thanks,


please, post what is your error.

on 1/18/16, 10:35 AM

Hi dom, I have no error but I can not see my new Item

on 1/19/16, 3:59 AM

Have you try with updating your module?

Jusab Sida (jsi)
on 1/19/16, 4:17 AM

Yes. I restarted OpenERP and updated my module

on 1/19/16, 5:18 AM

Have you add this file in __openerp__.py file ?

Jignesh Mehta
on 1/20/16, 10:37 PM
Maurice Agée
On 1/22/16, 9:48 AM

<menuitem name=" SALE QUOTATIONS CANCEL "






Kalpana Hemnani
On 1/21/16, 8:27 AM

Hello Selverine,

1. If you created a customized module.

  1. Make sure you have added addons path and updated module list.

  2. Make sure you have added this file into __openerp__.py

  3. Install this module by terminal -d db_name -i module_name

  4. Updating module(if already installed) -d db_name -i module_name

2. If you have modified existing file in base module:

  1. Update module by -d db_name -u module_name

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)


Asked: 1/18/16, 9:55 AM
Seen: 464 times
Last updated: 1/22/16, 9:48 AM