Skip to content
Permalink
Browse files

⬆️1️⃣2️⃣ group_menu_no_access *Port*

  • Loading branch information...
Ommo73 committed Jun 14, 2019
1 parent 9b92df2 commit 2780fc6af56f14a87fd5e2bee079d0327ab0fc9c
@@ -1,5 +1,47 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: https://www.gnu.org/licenses/lgpl
:alt: License: LGPL-3

======================
Group Menu No Access
======================

New setting for menu that blocks access to the menu

Credits
=======

Contributors
------------
* 'Ildar Nasyrov <iledarn@it-projects.info>'__

Sponsors
--------
* `IT-Projects LLC <https://it-projects.info>`__

Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To get a guaranteed support
you are kindly requested to purchase the module
at `odoo apps store <https://apps.odoo.com/apps/modules/12.0/group_menu_no_access/>`__.

Thank you for understanding!

`IT-Projects Team <https://www.it-projects.info/team>`__

Further information
===================

Demo: http://runbot.it-projects.info/demo/access-addons/12.0

HTML Description: https://apps.odoo.com/apps/modules/12.0/group_menu_no_access/

Usage instructions: `<doc/index.rst>`_

Changelog: `<doc/changelog.rst>`_

Notifications on updates: `via Atom <https://github.com/it-projects-llc/access-addons/commits/12.0/group_menu_no_access.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/access-addons/commits/12.0/group_menu_no_access.atom>`_

Tested on Odoo 12.0 a5f2248a8a7cbac2e00a4ec0fef42c8615588541
@@ -21,13 +21,13 @@

{
'name': 'Group Menu No Access',
'version': '0.1',
'version': '12.0.1.0.0',
"category": "Access",
'author': 'Cesar Lage',
'depends': ['base'],
"license": "AGPL-3",
'data': [
'views/groups.xml'
],
'installable': False
'installable': True
}
@@ -0,0 +1,4 @@
`1.0.0`
-------

- Init version
@@ -0,0 +1,25 @@
======================
Group Menu No Access
======================

Installation
============

* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way

Configuration
=============

* Log in as Administrator
* `Activate Developer Mode <https://odoo-development.readthedocs.io/en/latest/odoo/usage/debug-mode.html>`__

Usage
=====

* Open menu `Settings >> Users & Companies >> Groups`
* Select the group for which you want to change permissions to access for menu and sub-menu items
* Click on `[Edit]` button
* Go to the `[Menus]` tab
* Set permissions for this user group by adding to the table "Deny Access" sections to which you want to close access to the user and in the table "Allow Access" sections to which you want to open
* Click on `[Save]` button
* RESULT: sections closed to assigned users are invisible now and they can't access to these sections with the direct link
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, fields, api, SUPERUSER_ID
from odoo import models, fields, api, SUPERUSER_ID


class ResGroups(models.Model):
Binary file not shown.
@@ -1,6 +1,5 @@
<?xml version="1.0"?>
<openerp>
<data>
<odoo>

<record id="no_access_menu_view_groups_form" model="ir.ui.view" >
<field name="name">no.access.menu.view.groups.form</field>
@@ -19,5 +18,4 @@
</field>
</record>

</data>
</openerp>
</odoo>

0 comments on commit 2780fc6

Please sign in to comment.
You can’t perform that action at this time.