Skip to Content
Menu
This question has been flagged
2 Replies
2011 Rodiniai
I want to create an odoo dashboard and I have added an xml.Manifest file and dependencies as my example code above, but I can't solve this error, the reason may be. 
Codes :
xml version="1.0" encoding="utf-8"?>

id ="capa_dashboard" model="ir.ui.view" >
name="name">Capa Activity Dashboard
name="model">board.board
name="type">form
name="arch" type="xml">
string="My Form">
style="1-2">

string="Activity Tree" name="%(action_capa_activityd)"/>







id="action_dashboard" model="ir.actions.act_window">
name="name">Capa Activity Dashboard
name="res_model">board.board
name="view_mode">form
name="usage">menu
name="view_id" ref="capa_dashboard"/>


id="capa_dashboard"
parent="activity_menu"
sequence="5"
action="action_dashboard"/>



Error;
Traceback (most recent call last): File "C:\Users\Dogancan\Desktop\odoo-local\odoo\odoo\http.py", line 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "C:\Users\Dogancan\Desktop\odoo-local\odoo\odoo\http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause odoo.tools.convert.ParseError: while parsing file:/c:/users/dogancan/desktop/odoo-local/odoo/addons/capa-activity/views/capa_dashboard.xml:30 For external id capa-activity.capa_dashboard when trying to create/update a record of model ir.ui.menu found record of different model ir.ui.view (2179873) View error context: '-no context-'



Portretas
Atmesti
Autorius Best Answer

I did not understand the solution, I defined the menu item as follows. Is there anything I need to change in this block? Can you fix this code? Or what line do I need to add to the model definition? @niyas


id="capa_dashboard"
parent="activity_menu"
sequence="5"
action="action_dashboard"/>


Portretas
Atmesti
Best Answer

Hi,

Please see the usage of capa-activity.capa_dashboard inside your code, seems there is issue with usage of this ID. see this relevant part of error message:  trying to create/update a record of model ir.ui.menu found record of different model ir.ui.view (2179873)


Are you using any id of ir.ui.view inside the menuitem keyword ? see the usage of capa-activity.capa_dashboard.


For creating dashboard in Odoo:  https://www.youtube.com/watch?v=kfffu4Uzo10

Thanks

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 25
2027
1
birž. 25
2074
3
liep. 25
3661
1
geg. 25
1785
4
geg. 25
3097