Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

The test module(custom module) application is not showing in the application tab after installation inside users(which is in the left side of the screen;top of the 'group') because of this access right for individual users can't be given in odoo.

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
usersaccessapplicationaccess_rulesodooV8
4780 Vizualizări
Imagine profil
Tauseef

I have two user groups: manager and user but I can't add access right for those individuals For better understanding see image: 

my code ::


1. code of _init_.py file

import testmod

2. code of _openerp_.py file

{

'name': "Test Module",

'description': "Basic example of a (future) web module",

'author': 'tm',

'depends': ['base_setup'],

'data': ['test_view.xml','security/test_security.xml','security/ir.model.access.csv'],

'installable': True,

'application': True,

'auto_install': True,

}

3. code of testmod.py file

from openerp import models, fields,api

class testmod_test(models.Model):

_name = 'testmod.test'

_description = 'Test Model'

test1 = fields.Char('members id', required=False )

test2 = fields.Char('members name', required=False)

4. code of module xml view test_view.xml file

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

<openerp>

<data>

<record id="testmod_test_form" model="ir.ui.view">

<field name="name">testmod.test.form</field>

<field name="model">testmod.test</field>

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

<form string="Test" version="7.0">

<field name="test1" />

<field name="test2"/>

</form>

</field>

</record>

<record id="testmod_test_tree" model="ir.ui.view">

<field name="name">testmod.test.tree</field>

<field name="model">testmod.test</field>

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

<tree string="Test">

<field name="test1" />

<field name="test2"/>

</tree>

</field>

</record>

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

<field name="name">Test</field>

<field name="res_model">testmod.test</field>

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

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

</record>

<menuitem

name="Test"

id="menu_testmod_test"

/>

<menuitem

name="Test sub"

parent="menu_testmod_test"

id="menu_testmod_test_sub"

/>

<menuitem

name="Sub Test"

id="menu_subtest"

parent="menu_testmod_test_sub"

action="action_testmod_test"

/>

</data>

</openerp>

5. ir.model.access.csv file in security folder under test_module

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_testmod_test,access_testmod_test,model_testmod_test,group_name_test_user,1,1,0,0

access_testmod_test,access_testmod_test,model_testmod_test,group_name_test_manager,1,1,1,1

6. test_security.xml file inside security folder under test_module

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

<openerp>

<data noupdate="0">

<record model="ir.module.category" id="module_category_name_test">

<field name="name">Management</field>

<field name="sequence">7</field>

</record>

<record id="group_name_test_user" model="testmod.test">

<field name="name">User</field>

<field name="category_id" ref="model_testmod_test"/>

<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>

</record>

<record id="group_name_test_manager" model="testmod.test">

<field name="name">Manager</field>

<field name="category_id" ref="model_testmod_test"/>

<field name="implied_ids" eval="[(4, ref('group_name_test_user'))]"/>

<field name="users" eval="[(4, ref('base.user_root'))]"/>

</record>

</data>

</openerp>




0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Selection of User groups for User. [Closed] Rezolvat
users access
Imagine profil
Imagine profil
Imagine profil
3
sept. 21
11068
How to restrict access to an menu item to data related to the currently logged in user? Rezolvat
access odooV8
Imagine profil
Imagine profil
Imagine profil
3
sept. 15
5594
Access Rules in odoo 8
access_rules odooV8
Imagine profil
Imagine profil
1
mai 15
6364
Portal Issues - All contacts given access to their company's orders
users portal access
Imagine profil
Imagine profil
1
aug. 24
2766
The inventory of one company is showing to the user who is dealing the inventory of other companies Rezolvat
users inventory access_rules
Imagine profil
Imagine profil
1
nov. 22
3226
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now