Odoo Help

0

0
6 Risposte
1
Gregory Gillis Stati Uniti d'America
25/10/18, 16:04

EDIT: After looking around further, it appears to be an issue with the security. Once the security file is properly updated and groups are assigned to the views, it will appear in the menu. I am not sure why going through the tutorial does not work properly for permissions. SOLUTION-In developer mode, Settings>Technical>Access Rules. Create a new access rule for Open Academy. You will have to create for all of the objects. Save and reload the page. Openacademy should now appear in the Menu. This needs to be clarified on the documentation page and corrected so the security.csv actually adds to the access rules list when the module is added/upgraded.

More info: \https://www.odoo.com/forum/help-1/question/create-module-on-odoo-12-won-t-to-show-link-to-access-141195


Original: I'm running into the same issue. I've done this without issues for version 10 and 11. Not sure what has suddenly changed. Their tutorial, and even using the default 'scaffold' code does not allow a custom module to appear on the main menu.

The menu does not appear, even if you have an action in place and the action is correct. There is no error output, it just doesn't appear.

1 Commento
A.T. Merhaut, Inc., Gregory Gillis Stati Uniti d'America
26/10/18, 15:00

Side note: The security.xml MUST be before the ir.model.access.csv or it will give errors since it cannot find the group it is looking for. Also make sure that both are uncommented on __manifest__.py so they will load (remove the # if there is one).

0
Mario Bošnjak Croazia
07/11/18, 07:03

They have changed admin default access rights. If you create new module without explicitly declaring that a user can access module, it will not be visible. 
Thanks @Gregory

0
Avatar

subbarao India

--subbarao--

1365
| 5 3 8
Chennai, India
--subbarao--


subbarao India
25/10/18, 23:52

Hello Mario,

Without an action menu will not display.

Add any sub menu with an action under the root menu, it will work.

1 Commento
A.T. Merhaut, Inc., Gregory Gillis Stati Uniti d'America
26/10/18, 11:34

Here is what my xml looks like, with the action provided and nothing shows up in the menu:

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

<odoo>

<reco

rd model="ir.ui.view" id="course_form_view">

<field name="name">course.form</field>

<field name="model">openacademy.course</field>

<field name="arch" type="xml">

<form string="Course Form">

<sheet>

<group>

<field name="name"/>

<field name="description"/>

</group>

</sheet>

</form>

</field>

</record>

<!-- window action -->

<!--

The following tag is an action definition for a "window action",

that is an action opening a view or a set of views

-->

<record model="ir.actions.act_window" id="course_list_action">

<field name="name">Courses</field>

<field name="res_model">openacademy.course</field>

<field name="view_type">form</field>

<field name="view_mode">tree,form</field>

<field name="help" type="html">

<p class="oe_view_nocontent_smiling_face">Create the first course

</p>

</field>

</record>

<!-- top level menu: no parent -->

<menuitem id="main_openacademy_menu" name="Open Academy"/>

<!-- A first level in the left side menu is needed

before using action= attribute -->

<menuitem id="openacademy_menu" name="Open Academy"

parent="main_openacademy_menu"/>

<!-- the following menuitem should appear *after*

its parent openacademy_menu and *after* its

action course_list_action -->

<menuitem id="courses_menu" name="Courses" parent="openacademy_menu"

action="course_list_action"/>

<!-- Full id location:

action="openacademy.course_list_action"

It is not required when it is the same module -->

</odoo>

Fai una domanda
Keep Informed
2 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now