Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How How do I make the user sees only his own customers ?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
rulesgroups
3 Respostes
6777 Vistes
Avatar
omar

How do I make the user sees only his own customers

And how to make the manager  sees  only his employees customers 

And how to make admin see all customers

0
Avatar
Descartar
Jérémy Kersten (jke)

you can use access rule. For admin, it bypass anyway all access rights and access rule.

Avatar
omar
Autor Best Answer

what is the rule for the manager of user or employee to show only his users customers

0
Avatar
Descartar
Avatar
Tarek Mohamed Ibrahim
Best Answer

inherit the  'action_customer_partner_form' action and update the domain as follows

<field name="domain">[('customer','=',1),'|',('user_id.id','=',uid),('employee_id.department_id.manager_id.user_id.id','=',uid)]</field>

where the employee_id field is the related employee ID of the user who created the customer.

Using this, each user will see only the records he created only in the customer table, the department managers will see the records they created and all records created by their subordinates only.

As per Jérémy comment, the admin can see all records.

You have to add the employee_id feild to the 'res.partern' table and update it while adding new customers

0
Avatar
Descartar
omar
Autor

I have tested this But I got an error: Traceback (most recent call last): File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 537, in _handle_exception File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 574, in dispatch File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 310, in _call_function File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\service\model.py", line 118, in wrapper File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 307, in checked_call File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 803, in __call__ File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 403, in response_wrap File "C:\Program Files\Odoo 8.0-20151123\server\openerp\addons\web\controllers\main.py", line 884, in search_read File "C:\Program Files\Odoo 8.0-20151123\server\openerp\addons\web\controllers\main.py", line 905, in do_search_read File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\http.py", line 908, in proxy File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\api.py", line 250, in wrapper File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\models.py", line 5167, in search_read File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\api.py", line 250, in wrapper File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\models.py", line 1645, in search File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\api.py", line 250, in wrapper File "C:\Program Files\Odoo 8.0-20151123\server\openerp\addons\base\res\res_partner.py", line 656, in _search File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\api.py", line 250, in wrapper File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\models.py", line 4672, in _search File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\api.py", line 250, in wrapper File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\models.py", line 4483, in _where_calc File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\osv\expression.py", line 662, in __init__ File "C:\Program Files\Odoo 8.0-20151123\server\.\openerp\osv\expression.py", line 830, in parse ValueError: Invalid field u'employee_id.department_id.manager_id.user_id.id' in leaf ""

Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
rules doesn't work
rules groups
Avatar
0
de nov. 16
4227
problem in creating restriction rules to new users
users rules groups
Avatar
Avatar
1
de maig 25
3459
How to create rule to display only subordinates leave records in openerp
security rules groups
Avatar
Avatar
1
de març 15
8521
The rule is not working
xml rules groups odoo
Avatar
0
de set. 25
1670
How to delete field "groups" from ui
groups
Avatar
Avatar
Avatar
2
de maig 24
3165
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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