Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

UPDATED: Make users see only their OWN invoices and bills

Naroči se

Get notified when there's activity on this post

This question has been flagged
accountingGroupsRulesSecurity
6 Odgovori
7172 Prikazi
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
Opusti
Avatar
Gabri
Avtor 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
Opusti
Avatar
Sarath Babu
Best Answer

Hello,

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

2
Avatar
Opusti
Gabri
Avtor

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
Opusti
Gabri
Avtor

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
Opusti
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
Opusti
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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Make users see only their invoices Solved
accounting Rules
Avatar
Avatar
Avatar
Avatar
Avatar
4
jul. 24
5465
Deny access to window action if not group
Groups Security
Avatar
0
okt. 21
3039
Give access to fields in Accounting Entries, Account Receivable and Account Payable
accounting permissions Groups
Avatar
Avatar
Avatar
2
maj 25
1760
How can I add group rules for users?
Groups odooV13 Rules
Avatar
Avatar
Avatar
Avatar
3
jun. 23
4820
Hide Customers and Vendors menu item
accessrights Accounting Groups Security
Avatar
0
jun. 23
2797
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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