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

Odoo 11 entreprise error 403 forbidden (My experience)

Subscribe

Get notified when there's activity on this post

This question has been flagged
500odoov11403-forbidden
7086 Views
Avatar
Rachid El hatri

Hi Everyone,

I have tried to work with ODOO for years, and every year I LET GO because of the lot errors I get when I'm trieng to install addons or configuring the system.

The last year I purchased ODOO 10 Entreprise and didn't used it for the same problems (500 internal error, 403 eroor .... ), and when try to fix that it gets worse.

This Month I decided to try again and fix the problems whatever it takes (i'm a software developer by the way).

So I installed the ODOO 11 Entreprise in Windows (First Time with odoo in windows), After 5 days of configuring odoo and installing all the modules I needed in my company, and adding clients, partners, products, accounting details ... and everything work like a charm.   and guess what !?    After i Logged out of my session and want to login again I GET 403 Error.   

3 Days of searching the web for a solution !!  NOTHING fixed the problem

After that I get the Error (500 Internal server error).

I decided to read all the codes in the files of odoo to inderstand how it works, and VOILA I found some lines in (ir_model.py  -- addons\base\ir\ ) file, when I commented this lines EVERYTHING works nicely and without any error since.

Those are the lines commented :

---------------------------------------------------------------

#    if not r:

# # there is no specific rule. We check the generic rule

# self._cr.execute("""SELECT MAX(CASE WHEN perm_{mode} THEN 1 ELSE 0 END)

# FROM ir_model_access a

# JOIN ir_model m ON (m.id = a.model_id)

# WHERE a.group_id IS NULL

# AND m.model = %s

# AND a.active IS TRUE""".format(mode=mode),

# (model,))

# r = self._cr.fetchone()[0]

#

# if not r and raise_exception:

# groups = '\n\t'.join('- %s' % g for g in self.group_names_with_access(model, mode))

# msg_heads = {

# # Messages are declared in extenso so they are properly exported in translation terms

# 'read': _("Sorry, you are not allowed to access this document."),

# 'write': _("Sorry, you are not allowed to modify this document."),

# 'create': _("Sorry, you are not allowed to create this kind of document."),

# 'unlink': _("Sorry, you are not allowed to delete this document."),

# }

# if groups:

# msg_tail = _("Only users with the following access level are currently allowed to do that") + ":\n%s\n\n(" + _("Document model") + ": %s)"

# msg_params = (groups, model)

# else:

# msg_tail = _("Please contact your system administrator if you think this is an error.") + "\n\n(" + _("Document model") + ": %s)"

# msg_params = (model,)

# _logger.info('Access Denied by ACLs for operation: %s, uid: %s, model: %s', mode, self._uid, model)

# msg = '%s %s' % (msg_heads[mode], msg_tail)

# raise AccessError(msg % msg_params)

#

# return bool(r)

----------------------------------------------------------------


So my question is :

- How this lines affect my system ? and is commenting this line well give some problems in the future ?


DETAILS :

- Odoo 11.0e+e-20180323 (Enterprise Edition)

- Windows system

- Modules installed : 

base.module_crm
base.module_project
base.module_stock
base.module_mrp
base.module_sale_management
base.module_mail
base.module_hr_holidays
base.module_account_invoicing
base.module_account_accountant
base.module_quality
base.module_website
base.module_helpdesk
base.module_purchase
base.module_hr
base.module_hr_expense
base.module_board
base.module_contacts
base.module_marketing_automation
base.module_web_studio
base.module_mass_mailing
base.module_maintenance
base.module_calendar
base.module_fleet
base.module_im_livechat
base.module_mrp_repair


Best regards

RACHID 

 

0
Avatar
Discard
Ermin Trevisan

It is not possible to give you help or answers, because you do not provide the information necessary.

I can only comment:

1. Do not use Windows, if you are not forced to. The most common deployments are on Ubuntu and therefore you also have the best chances to get help.

2. What you did is for sure not recommended and it will most probably screw your deployment sooner or later.

3. You have to identify the causes. The key to your problems is the Odoo log. Please read this log and troubleshoot the issues.

4. Revert to Odoo support first, when you pay for Enterprise.

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
500: Internal Server Error
500
Avatar
Avatar
Avatar
Avatar
4
Sep 24
2275
Invited course member receives "403 Forbidden" the page could not be authorized
403-forbidden
Avatar
0
Dec 22
2249
Change default location in update quantity on hand window Solved
odoov11
Avatar
Avatar
Avatar
2
Jul 22
9973
odoo v11 options are missing
odoov11
Avatar
Avatar
1
Jun 21
3155
[SOLVED] Get related field Solved
odoov11
Avatar
Avatar
2
Feb 21
299
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