Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

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

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
1 Balas
945 Tampilan
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
Buang
Avatar
Gracious Joseph
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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