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

Filter Contacts for Internal Users V16

Abonare

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

Această întrebare a fost marcată
odoo16features
2 Răspunsuri
3224 Vizualizări
Imagine profil
Tim Drinkwater

Creating a very base level user group for manufacturing activities.  I want to filter contacts to only display internal users.  


As I understand I need to create a record rule.  Technical name seems to be sel_groups_1_9_10 with 1 = Internal User.  I'm having trouble finding the corresponding field to setup a record rule.


What is the proper way to achieve this?



0
Imagine profil
Abandonează
Tim Drinkwater
Autor

The current global record rule is:
['|', '|', ('partner_share', '=', False), ('company_id', 'in', company_ids), ('company_id', '=', False)]

If I change it to:
[('partner_share', '=', False)]

I get exactly what I'm looking for except of course it's global so applies to all users.

If I create a new record rule with [('partner_share', '=', False)] and apply to the target group it doesn't restrict access.

As I've read a group rule should restrict a global rule to where they intersect
https://www.odoo.com/documentation/16.0/developer/reference/backend/security.html?highlight=rulesets%20intersect

I'm clearing doing something wrong.

Imagine profil
Tim Drinkwater
Autor Cel mai bun răspuns

I'm not certain this is the best solution but seems to have worked.

I did have a premission conflict, which in retrospect seems obvious.  The internal user group was providing greater access to contacts then I want all users to have.  I updated the record rule from: 

['|', ('type', '!=', 'private'), ('type', '=', False)] 

to:

['&', '|', ('type', '!=', 'private'), ('type', '=', False), ('partner_share', '=', False)]

I then created a new record rule of:

[('partner_share', '!=', False)]

and applied to group 'Sales / User: Own Documents Only' I may find I need to apply to additional groups but still testing.  

0
Imagine profil
Abandonează
Imagine profil
Niyas Raphy (Walnut Software Solutions)
Cel mai bun răspuns

Hi,

You can write the domain as follows:  [('share', '=', False)]

Thanks

1
Imagine profil
Abandonează
Tim Drinkwater
Autor

Thank you. This works well as a search filter but I can't seem to make it work as a record rule. I think I may have some access right conflicts to sort out.

Any thoughts on how best to implement it?

Tim Drinkwater
Autor

After some more trials. The domain works perfectly if I leave it as a global rule. This might be a better solution. However, now I need to allow higher use less filtering. Any thoughts?

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
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Rezolvat
odoo16features
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
5
sept. 25
24789
How to Add wizard under print button inside the form view.
odoo16features
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
aug. 25
3779
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Imagine profil
Imagine profil
1
mai 25
3694
get all partners which are internal users or portal users odoo16
odoo16features
Imagine profil
Imagine profil
1
apr. 25
4534
How to add decoration color green with bold to a record with a single conditon
odoo16features
Imagine profil
Imagine profil
1
apr. 25
5373
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