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

KeyError: '' - - -. Odoo12 Enterprise POS

Subscribe

Get notified when there's activity on this post

This question has been flagged
enterpriseenterprisedbpoint_of_saleodoo12
2815 Views
Avatar
Jugert Mucoimaj

Hello,
I'm a new developer in odoo and I have 3 months that I have started. During a task that was given me by my company I work with I had this problem which affected all databases and not just only one.
I was working in a report for odoo Point Of Sale and my goal was to take some variable values which included the money a session in pos ends. So I made a module inheriting "pos.session" and after looking at it, the module was working fine but there was still little things to be added. While changing the code I ended up with a recursion error and even though I stopped the service, the database somehow affected other databases.
I'm working on odoo12 and the error that it gives me is:



Traceback (most recent call last):
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 60, in __new__
    return cls.registries[db_name]
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/tools/func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: 'bardemo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/loading.py", line 430, in load_modules
    registry.setup_models(cr)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 274, in setup_models
    model._setup_fields()
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/models.py", line 2658, in _setup_fields
    field.setup_full(self)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 520, in setup_full
    self._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 1392, in _setup_related_full
    super(Monetary, self)._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 563, in _setup_related_full
    field = target._fields[name]
KeyError: ''
2022-05-26 08:16:11,366 10550 INFO bardemo werkzeug: 192.168.1.69 - - [26/May/2022 08:16:11] "GET /favicon.ico HTTP/1.1" 500 - 13 0.017 0.424
2022-05-26 08:16:11,372 10550 ERROR bardemo werkzeug: Error on request:
Traceback (most recent call last):
  File "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3.8/site-packages/werkzeug/serving.py", line 205, in run_wsgi
    execute(self.server.app)
  File "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3.8/site-packages/werkzeug/serving.py", line 193, in execute
    application_iter = app(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/service/server.py", line 436, in app
    return self.app(e, s)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/service/wsgi_server.py", line 142, in application
    return application_unproxied(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1320, in __call__
    return self.dispatch(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1293, in __call__
    return self.app(environ, start_wrapped)
  File "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3.8/site-packages/werkzeug/wsgi.py", line 599, in __call__
    return self.app(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1471, in dispatch
    odoo.registry(db).check_signaling()
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/__init__.py", line 117, in registry
    return modules.registry.Registry(database_name)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 62, in __new__
    return cls.new(db_name)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/loading.py", line 430, in load_modules
    registry.setup_models(cr)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 274, in setup_models
    model._setup_fields()
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/models.py", line 2658, in _setup_fields
    field.setup_full(self)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 520, in setup_full
    self._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 1392, in _setup_related_full
    super(Monetary, self)._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 563, in _setup_related_full
    field = target._fields[name]
KeyError: '' - - -

0
Avatar
Discard
Gopakumar N G

The best way for you is to revert the changes and check whether it will solve the problem, maybe in a database backup. It looks like the error log is incomplete and we cannot help you without knowing the changes you have made.

Jugert Mucoimaj
Author

Hello Gopakumar, thanks for answering. I solved the problem installing the pos module from github. I don't know what happened and why it affected other dbs.

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
Two Reports, One Template Sale order Report [Odoo 12 Enterprise] Solved
enterprise odoo12
Avatar
Avatar
1
Nov 19
4318
odoo 12 custom pos lock screen module this.pos is null
point_of_sale odoo12
Avatar
0
Mar 19
4815
On-premise: Community to Enterprise. odoo-bin not found
upgrading enterprise enterprisedb
Avatar
0
Jul 25
1481
Settings Dashboard in Odoo12
enterprise url odoo12
Avatar
Avatar
Avatar
2
Aug 23
2735
"AttributeError: 'bool' object has no attribute 'date'" when trying to access the point of sale module. Solved
bugs point_of_sale odoo12
Avatar
Avatar
2
May 23
11912
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