Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
16584 Vizualizări

Hello, I'm trying to develop my first module. Odoo version is 9.0c 

The problem is when I add 'parent="mail.mail_feeds"' into todo_view.xml I get error External ID not found in the system

Do I have to install some additional module(I didn' find any module with name Mail)?

todo_view.xml

<?xml version="1.0"?>
<odoo>
 <record model="ir.actions.act_window" id="action_todo_task">
 <field name="name">To-Do Task</field>
 <field name="res_model">todo.task</field>
 <field name="view_type">form</field>
 <field name="view_mode">tree, form</field>
 </record>
 <menuitem id="menu_todo_task" name="To-Do Task"
           parent="mail.mail_feeds"
sequence="20"
  action="action_todo_task"/>
 </odoo>

__openerp__.py

# -*- coding: utf-8 -*-
{
 'name': "ToDo application",
 'description': "Manage your's todos here",
 'application': False,
 'version': '0.1',
 'data': ['todo_view.xml'],
 'installable': True,
 'auto_install': False,
 'depends': ['mail'],
}
Imagine profil
Abandonează

Hello roman, Check the action which is define by you in menuitem that is mail.mail_feeds is right or not

Cel mai bun răspuns

Hello Roman,


If you want to show your menu under the Discuss then try this


<menuitem id="menu_todo_task" name="To-Do Task"

parent="mail.mail_channel_menu_root_chat"

sequence="20"

action="action_todo_task"/>


Thanks,


Imagine profil
Abandonează
Cel mai bun răspuns

<menuitem id="menu_todo_task"
name="To-Do task"
parent="mail.mail_channel_menu_root_chat"
action="action_todo_task"/>

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
iul. 25
2140
0
mar. 24
1605
2
nov. 16
5873
1
mar. 15
4257
3
mar. 15
9355