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

[SOLVED][V8] template definition: can't find the error on menuitem on this script!

By
FEDERICO LEONI
on 6/16/15, 8:14 PM 558 views

Hi all!

    raise ValueError('External ID not found in the system: %s' % (xmlid))
ParseError: "External ID not found in the system: divina_pos.kitchen_orders_action" while parsing /home/effe/odoo/addons/divina_pos/templates.xml:33, near
<menuitem parent="point_of_sale.menu_point_root" action="kitchen_orders_action" id="menu_kitchen_orders" sequence="30"/>

I'm missing something, I know, but even moving the menuitem to the bottom of the script I can't have it working.

<openerp>
<data>
<record model="ir.actions.act_window" id="menu_kitchen_orders">
<field name="name">kitchen_orders_action</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">pos.order</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False"/>
<field name="domain">[]</field>
</record>
<record id="Kitchen_orders_tree_view" model="ir.ui.view">
<field name="name">Kitchen_orders_tree</field>
<field name="model">kitchen.order</field>
<field name="field_parent" eval="False"/>
<field name="arch" type="xml">
<tree string = "Pedidos da Cozinha" editable= "top" colors="red:to_wait=='Sim'">
<field name = "date_order"/>
<field name = "partner_name"/>
<field name = "qty"/>
<field name = "product_name"/>
<field name = "instructions"/>
</tree>
</field>
</record>
<menuitem
parent="point_of_sale.menu_point_root"
action="kitchen_orders_action"
id="menu_kitchen_orders"
sequence="30"/>
</data>
</openerp>

 What I'm missing?

1

Hiral Patel (hip)

--Hiral Patel (hip)--
Tiny ERP Pvt Ltd
http://www.odoo.com
913
| 2 1 5
India
--Hiral Patel (hip)--


Hiral Patel (hip)
On 6/17/15, 1:04 AM

Error at: action="kitchen_orders_action"

Update it with action="menu_kitchen_orders".

Thanks.

FEDERICO LEONI
on 6/17/15, 8:16 AM
2
Virali
On 6/17/15, 2:35 AM

In action you need to specify action id and your action id is "menu_kitchen_orders".

<menuitem parent="point_of_sale.menu_point_root" action="menu_kitchen_orders" id="menu_kitchen_orders" sequence="30"/>

Thanks.

FEDERICO LEONI
on 6/17/15, 8:16 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: 6/16/15, 8:14 PM
Seen: 558 times
Last updated: 6/17/15, 8:32 AM