Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Guest House
    • Drankenhandelaar
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Solar Energy Systems
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC Services
    Others
    • Nonprofit Organization
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How to restrict users from seeing vendor details in POS V17`

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
1 Beantwoorden
943 Weergaven
Avatar
Ronny

Hello,

I want to restrict users from accessing venders details from POS screen but they need to give access to clients details.

0
Avatar
Annuleer
Avatar
Gracious Joseph
Beste antwoord

Restricting users from accessing vendor details in POS (Point of Sale) V17 while allowing access to client details can be managed through a combination of access rights, record rules, and slight modifications to the POS screen. Here's how you can achieve this:

1. Understand the Default POS Behavior

By default, the Point of Sale module uses the res.partner model for both vendors and customers (clients). To restrict access to vendor details specifically, you need to define rules that:

  • Distinguish vendors from customers.
  • Prevent the POS user from accessing vendor records.

2. Steps to Restrict Access to Vendor Details

A. Create a Security Group for POS Users

  1. Go to Settings > Users & Companies > Groups.
  2. Create a new group, e.g., POS Limited Access.
  3. Assign this group to the POS users who should have restricted access.

B. Add a Field to Identify Vendors

To distinguish vendors from customers, use the supplier_rank field on res.partner.

  • Vendors have supplier_rank > 0, while customers usually have customer_rank > 0.

C. Create a Record Rule

Define a record rule that restricts access to vendor records for the POS Limited Access group.

  1. Go to Settings > Technical > Security > Record Rules.
  2. Create a new rule:
    • Model: res.partner.
    • Rule Definition: Restrict access to non-vendor records:
      ['|', ('supplier_rank', '=', 0), ('supplier_rank', '=', False)]
      
    • Applies To: Check Read only.
    • Groups: Assign the rule to the POS Limited Access group.

This rule ensures that users in the POS Limited Access group can only see partners who are not vendors.

D. Assign the Group to POS Users

  1. Go to Settings > Users & Companies > Users.
  2. Assign the POS Limited Access group to the relevant users.

3. Restrict Vendor Access in the POS Interface

The above steps restrict access to vendor records at the backend level. However, in the POS interface, you may need to customize the displayed data to ensure vendor details are not accessible.

Customize POS to Filter Only Customers

  1. Filter Customer Records: Modify the models definition in the POS JavaScript to only load customers (customer_rank > 0).
    Example:
    /** @odoo-module **/
    
    import PosDB from 'point_of_sale.models';
    
    const PosModelSuper = PosDB.prototype.models;
    PosDB.prototype.models = PosModelSuper.map(model => {
        if (model.model === 'res.partner') {
            model.domain = [['customer_rank', '>', 0]];
        }
        return model;
    });
    
    • Place this code in a custom module or inject it into the POS initialization.
  2. Prevent Access to Vendor Details: If there are additional screens or buttons in POS leading to vendor details, ensure those buttons or views are hidden for users with the POS Limited Access group.

4. Test the Configuration

  1. As an Admin:
    • Log in as an admin and verify that all partner records (both vendors and customers) are accessible.
  2. As a Restricted User:
    • Log in as a POS user with the POS Limited Access group.
    • Check the following:
      • Vendors are not visible in partner lists or searches.
      • Customers are fully accessible.
  3. POS Interface:
    • Start a POS session and confirm that only customers are displayed in the customer search or list.

5. Optional Enhancements

A. Add a Filter in Partner Lists

To explicitly show only customers in the POS interface, add a filter button that automatically applies customer_rank > 0.

B. Restrict Vendor Access in Other Modules

If POS users also have access to modules like Purchases or Contacts, ensure similar record rules are applied there.

Conclusion

By implementing the above steps, you can effectively restrict POS users from accessing vendor details while still allowing access to customer details. Let me know if you need further guidance or code snippets for customization!

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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