This question has been flagged
2 Replies
3259 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?

Avatar
Discard
Best Answer

Error at: action="kitchen_orders_action"

Update it with action="menu_kitchen_orders".

Avatar
Discard
Author

Thanks.

Best Answer

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"/>

Avatar
Discard
Author

Thanks.