Skip to Content
Menu
This question has been flagged
4 Replies
2211 Views

After install a model nothing appear no menu, forms ,  nothing 

although the log showed some error and I fixed and no any error anymore


<?xml version="1.0" encoding="utf-8"?>

<odoo>
<data>
<!-- المهام root menus -->
<!-- Timesheet root menus -->
<menuitem id="todo_task_menu_root"
name="Tasks"
sequence="55"
web_icon="hr_timesheet,static/description/icon_timesheet.png"/>

<menuitem id="menu_todo_task_tracking"
name="tasks"
parent="todo_task_menu_root"
sequence="5"/>




<!--
صف المهام
-->
<record id="todo_task_line_tree" model="ir.ui.view">
<field name="name">tasks</field>
<field name="model">todo.task</field>
<field name="arch" type="xml">
<tree editable="top" string="الانشطة والمهام" import="false">
<field name="descr" string="المطلوب عمله"/>
<field name="start_date" string="تاريخ"/>
<field name="gov_dep" string="الجهة الحكومية"/>
<field name="related_party" string="العمل لصالح"/>
<field name="deadline_date" string="الحد الاقصي"/>
<field name="amount"/>
<field name="note"/>
<field name="remaining_days" string="الباقي من الايام"/>
</tree>
</field>
</record>
<!-- <record id="view_todo_task_line_pivot" model="ir.ui.view">-->
<!-- <field name="name">todo.task.pivot</field>-->
<!-- <field name="model">todo.task</field>-->
<!-- <field name="arch" type="xml">-->
<!-- <pivot string="قائمة المهام">-->
<!-- <field name="employee_id" type="row"/>-->
<!-- <field name="sart_date" interval="month" type="col"/>-->
<!-- <field name="amount" type="measure" widget="timesheet_uom"/>-->
<!-- </pivot>-->
<!-- </field>-->
<!-- </record>-->

<record id="todo_task_line_form" model="ir.ui.view">
<field name="name">todo.task.line.form</field>
<field name="model">todo.task</field>
<field name="priority">1</field>
<!-- <field name="inherit_id" eval="False"/>-->
<field name="arch" type="xml">
<form string="tasks">
<sheet string="Tasks Entry">

<group>
<field name="descr" string="المطلوب عمله"/>
<field name="start_date" string="تاريخ"/>
<field name="gov_dep" string="الجهة الحكومية"/>
<field name="related_party" string="العمل لصالح"/>
<field name="deadline_date" string="الحد الاقصي"/>
</group>
<group>
<field name="amount"/>
<field name="note"/>
<field name="remaining_days" string="الباقي من الايام"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="todo_task_line_search" model="ir.ui.view">
<field name="name">todo.tasks.line.search</field>
<field name="model">todo.task</field>
<field name="arch" type="xml">
<search string="tasks">
<field name="descr" string="المطلوب عمله"/>
<field name="start_date" string="تاريخ"/>
<field name="gov_dep" string="الجهة الحكومية"/>
<field name="related_party" string="العمل لصالح"/>
<field name="deadline_date" string="الحد الاقصي"/>
<separator/>
<filter name="month" string="Date" date="date"/>
<group expand="0" string="Group By">
<filter string="Employee" name="groupby_employee" domain="[]" context="{'group_by':'employee_id'}"/>
<filter string="related_party" name="groupby_project" domain="[]" context="{'group_by':'related_party'}"/>
<filter string="gov_dep" name="groupby_task" domain="[]" context="{'group_by':'gov_dep'}"/>
<filter string="deadline" name="groupby_date" domain="[]" context="{'group_by':'deadline_date'}" help="Timesheet by Date"/>
</group>
</search>
</field>
</record>

<record id="act_todo_task_line" model="ir.actions.act_window">
<field name="name">المهام المطلوبه</field>
<field name="res_model">todo.task</field>
<field name="view_mode">tree,form</field>
<!-- <field name="domain">[('project_id', '!=', False), ('user_id', '=', uid)]</field>-->
<field name="context">{
"search_default_week":1,
}
</field>
<field name="search_view_id" ref="todo_task_line_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Record a new activity
</p>
<p>
تستطيع تسجيل مهامك الموكله اليك هناوفقا للشركه
</p>
</field>
</record>


<record id="act_todo_task_line_view_tree" model="ir.actions.act_window.view">
<field name="view_mode">tree</field>
<field name="sequence" eval="4"/>
<field name="view_id" ref="todo_task_line_tree"/>
<field name="act_window_id" ref="act_todo_task_line"/>
</record>
<record id="act_todo_task_line_view_form" model="ir.actions.act_window.view">
<field name="view_mode">form</field>
<field name="sequence" eval="5"/>
<field name="view_id" ref="todo_task_line_form"/>
<field name="act_window_id" ref="act_todo_task_line"/>
</record>
<!-- <menuitem id="todo_menu_activity_mine"-->
<!-- name="My Tasks"-->
<!-- parent="menu_todo_task_tracking"-->
<!-- action="act_todo_task_line"/>-->

<!-- <menuitem id="menu_todo_task_tracking"-->
<!-- name="Tasks"-->
<!-- parent="todo_task_menu_root"/>-->



</data>
</odoo>
Avatar
Discard
Best Answer

Have you already tried restarting Odoo service? 

Regards

Avatar
Discard
Best Answer
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
acess_todo_task_group_use,todo.task.user,model_todo_task,base.group_user,1,1,1,1
Avatar
Discard
Author Best Answer

many thank Mr, Niyas

the folloing is security access

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
acess_todo_task_group_use
,todo.task.user,base.group_user,,1,1,1

and i shifted to superuser but nothing change


Avatar
Discard
Best Answer

Hi,

If you are using Odoo 12 you have to give security/acess rights for the model and menu you have added. If not it won't be visible as in below version.


To view those menu and forms either you can set security for corresponding model and menu, or just switch to super user mode.


To switch to super user, activate developer mode and click debugger button near logged in users name in menu bar and click the Become Superuser.


Thanks

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 23
12010
0
Oct 23
33
3
Oct 23
787
1
Oct 23
569
1
Aug 23
982