Skip to Content
Odoo Menu
  • Sign in
  • 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
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

"Access Denied by record rules" error Adding Company to Contact List (from everyone including admin)

Subscribe

Get notified when there's activity on this post

This question has been flagged
contactsgroups
1 Reply
6676 Views
Avatar
Jeremy Okonski

When the Add Customer prompt is brought up as I try to add a new Company, Odoo tells me:

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.(Document type: Contact, Operation: create)


and /var/log/audit/audit.log tells me

2019-02-12 18:04:19,613 3189 INFO odoo12 odoo.models: Access Denied by record rules for operation: create on record ids: [825], uid: 6, model: res.partner
2019-02-12 18:04:19,615 3189 INFO odoo12 werkzeug: 162.246.248.137 - - [12/Feb/2019 18:04:19] "POST /web/dataset/call_kw/res.partner/create HTTP/1.1" 200 - 41 0.016 0.042


The way I got here was that I tried to create an outside_sales group that has limited access to contacts.  I think I backed out of my new rules and groups and as far as I can tell, the settings look the same as a new installation.  The other change was that new user had a different email domain.  That user is completely gone now.


Is there any logging I can turn on or anything that I can do to help debug this?  I prefer not to have to build this all from scratch but at this point it is my quickest option to get functional again.

1
Avatar
Discard
Avatar
Jeremy Okonski
Author Best Answer

(EDIT: The stuff below was probably a cause but still didn't fix it for whatever reason.  I was able to add a company once and haven't been able to since. )


I tracked down the bad edit.

In Groups there is something called Extra Rights Contact Creation.  I had a really bad Record Rules in there that said:

Contact, Contact, [('is_company', '=', False)], [Apply for Create]


If I'm reading that correctly, it is saying if someone is in the company, they cannot create a contact.  That seems to be the opposite of what I wanted.


I had to remove it and reboot a couple times.  It didn't work at first but did after the 5th time.  I have no idea why that is other than maybe I was using some cached version.  It works now though after removing that bit.

This answer probably won't help anyone else other than warning people about the dangers of not documenting all changes.  But if you are looking to implement that rule, don't!

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

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

Sign up
Related Posts Replies Views Activity
field 'x' used in attrs ({'invisible':['x','!=',False]}) is restricted to the group(s) account.group_account_invoice,account.group_account_readonly,account.group_account_manager.
accounting contacts groups
Avatar
0
Jan 23
3553
importing contacts. Getting blocking error: Contacts require a name at multiple rows
contacts
Avatar
Avatar
Avatar
2
Oct 25
1181
Blocking Errors
contacts
Avatar
Avatar
1
Oct 25
906
O18 EE: Completely unknown email addresses in the contacts?
contacts
Avatar
Avatar
Avatar
2
Nov 25
1012
Add contacts to the seller field and not users
contacts
Avatar
Avatar
1
May 25
2546
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