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
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • 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
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • 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

Unable to Unreconcile customer payment because of a KeyError

Subscriure's

Get notified when there's activity on this post

This question has been flagged
financev8customerpayment
1 Respondre
7877 Vistes
Avatar
Janno Liivak

When I try to Unreconcile customer payment I get a following error:

>>>
2014-07-10 19:27:55,381 11652 ERROR mycompany openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/Users/janno_liivak/development/python/odoo/openerp/http.py", line 476, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/Users/janno_liivak/development/python/odoo/openerp/http.py", line 495, in dispatch
    result = self._call_function(**self.params)
  File "/Users/janno_liivak/development/python/odoo/openerp/http.py", line 311, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/openerp/http.py", line 308, in checked_call
    return self.endpoint(*a, **kw)
  File "/Users/janno_liivak/development/python/odoo/openerp/http.py", line 685, in __call__
    return self.method(*args, **kw)
  File "/Users/janno_liivak/development/python/odoo/openerp/http.py", line 360, in response_wrap
    response = f(*args, **kw)
  File "/Users/janno_liivak/development/python/odoo/addons/web/controllers/main.py", line 987, in call_button
    action = self._call_kw(model, method, args, {})
  File "/Users/janno_liivak/development/python/odoo/addons/web/controllers/main.py", line 975, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/addons/account_voucher/account_voucher.py", line 952, in cancel_voucher
    reconcile_pool.unlink(cr, uid, [line.reconcile_id.id])
  File "/Users/janno_liivak/development/python/odoo/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/addons/account/account.py", line 1617, in unlink
    return super(account_move_reconcile, self).unlink(cr, uid, ids, context=context)
  File "/Users/janno_liivak/development/python/odoo/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/openerp/models.py", line 3533, in unlink
    recs.recompute()
  File "/Users/janno_liivak/development/python/odoo/openerp/api.py", line 202, in wrapper
    return new_api(self, *args, **kwargs)
  File "/Users/janno_liivak/development/python/odoo/openerp/models.py", line 5449, in recompute
    f.name: rec[f.name] for f in field.computed_fields
  File "/Users/janno_liivak/development/python/odoo/openerp/models.py", line 5449, in <dictcomp>
    f.name: rec[f.name] for f in field.computed_fields
  File "/Users/janno_liivak/development/python/odoo/openerp/models.py", line 5330, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/Users/janno_liivak/development/python/odoo/openerp/fields.py", line 679, in __get__
    return record._cache[self]
  File "/Users/janno_liivak/development/python/odoo/openerp/models.py", line 5643, in __getitem__
    value = self._recs.env.cache[field][self._recs.id]
KeyError: 19
>>>

There's an old payment which invoice was credited (or reversed or Refunded ... whatever the term). New invoice was issued and old payment was like an advance payment an it was reconciled together with additional payment for the new (a little bigger amount of money). All was well and good but the date of a new payment was incorrect ... so now I will have to unreconcile the new payment and correct the date.

How to overcome the error? What causes it anyway?

2
Avatar
Descartar
Ivan

It seems to be a cache error in the server. Have you tried to restart the server?

Janno Liivak
Autor

Yes, I tried that. And it's definitly not connected to server cache ... well, not directly anyway.

Avatar
Yakito
Best Answer

Hey, I don't know if this is remotely close to solve your problem, I will tell you what I did to solve mine after installing v8 and getting also a KeyError. I simpley reverted the translation to english (I had it in portuguese) and it works now for me. I am not sure why and now I am looking on how to get it back into portuguese without an error,  but there was something in that translaton that broke the Json. Hope it helps somehow.

0
Avatar
Descartar
Janno Liivak
Autor

Yes, that's it. I already figured this one out from some other forum post.

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
How to direct Advance Payment from the Odoo V 11
finance payment
Avatar
0
de març 18
3478
Best Practice: Record a Customer Payment from an Unknown Customer and still reconcile our Bank Statement in a timely mannner? Solved
customer payment unknown
Avatar
Avatar
1
de juny 25
1069
Payment / Invoicing
invoice customer payment
Avatar
0
de gen. 25
1685
One payment received for multiple customers
customer multiple payment
Avatar
0
de juny 22
3007
How can I do to prevent other customers from updating when I edit my Payment Information?
customer payment sale.order
Avatar
0
de nov. 17
3282
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