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
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • 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
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • 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

UPDATED: Make users see only their OWN invoices and bills

Subscriure's

Get notified when there's activity on this post

This question has been flagged
accountingGroupsRulesSecurity
6 Respostes
7205 Vistes
Avatar
Gabri

I want to create a group to Accounting with the purpose of make the users that are in that group, let them see only their OWN invoices, created by them, and restrict the rest of the existing invoices that are NOT created by themselves.


I want to apply this to INVOICES and BILLS


How can I do this? I've tried by creating and adding a group to Accounting and adding some Record Rules like [('user_id','=',user.id)] but it only works for invoices, not for bills.


UPDATE: 

The invoices are working, I can only see the invoices that the user creates, but the main problem is that I can see everyone's bills.


This is my group configuration (these are the links of the screenshots) :

https://postimg.cc/nCnYKQ9K
https://postimg.cc/v4BrkFzc
https://postimg.cc/GHzPXhvW
https://postimg.cc/62sC87Nv
https://postimg.cc/xkNKjvBQ
https://postimg.cc/34gmmKKb
https://postimg.cc/K1HPyqqQ


And this is what the user sees:

https://postimg.cc/1fNB3ZF2
https://postimg.cc/gr74p0x3
https://postimg.cc/tZSkYq2Q


Thanks in advance.


0
Avatar
Descartar
Avatar
Gabri
Autor Best Answer

I have found a solution. Maybe it's not the perfect answer for this problem but I hope it works for somebody that haves or will have this issue:


https://postimg.cc/k683Wtz2

https://postimg.cc/gLqCTbYd

https://postimg.cc/tnj0k4G2

https://postimg.cc/qgsHRy2Y

https://postimg.cc/DSz9BNRk

https://postimg.cc/56fdFy3t

https://postimg.cc/jLvV6Tg4


I've created a new group, and applied this rules and right accesses. Doing this you are allowing an specific user only to see the Accounting app, and making him only aviable to see his OWN invoices and bills. And he can read, create, update and delete them.

0
Avatar
Descartar
Avatar
Sarath Babu
Best Answer

Hello,

you can add a `record.rules` with domain filter ['|',('user_id','=',user.id),('user_id','=',False)]

2
Avatar
Descartar
Gabri
Autor

Thanks for your answer, I updated the post adding some screenshots, because I'm having troubles with bills.

Avatar
Creyox Technologies
Best Answer

Hello Gabri, 

I think you have to try this domain in your record rule. 

[('create_uid', '=', user.id)]

Hope this domain is helpful to you. 

1
Avatar
Descartar
Gabri
Autor

Thank you so much for your answer, it is working for invoices, but I don't understand why is not applying aswell for bills (vendor bills). I've added some screenshots to give examples .

Avatar
Julien Plaitin
Best Answer

Hello,

You should check the access rights/record rules of the user to see if he inherits one from another group for the account.move and account.move.line model.

I had a similar issue with the accounting app where the user told me he still had access to the vendor bills but not to the invoices.

1
Avatar
Descartar
Avatar
Josep Anton Belchi Riera
Best Answer

You can try to put users in the group "Sales: own documents only".  There are several record rules that I think correspond to what you are looking for. 
Maybe you have to create some rules for invoices.

1
Avatar
Descartar
Avatar
Justin Louie Uy
Best Answer

Has anyone found a solution to this yet? I get the same results, the record rules apply to the invoices but not the vendor bills

0
Avatar
Descartar
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
Make users see only their invoices Solved
accounting Rules
Avatar
Avatar
Avatar
Avatar
Avatar
4
de jul. 24
5492
Deny access to window action if not group
Groups Security
Avatar
0
d’oct. 21
3096
Give access to fields in Accounting Entries, Account Receivable and Account Payable
accounting permissions Groups
Avatar
Avatar
Avatar
2
de maig 25
1780
How can I add group rules for users?
Groups odooV13 Rules
Avatar
Avatar
Avatar
Avatar
3
de juny 23
4837
Hide Customers and Vendors menu item
accessrights Accounting Groups Security
Avatar
0
de juny 23
2843
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