Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

[Odoo 11] Error when i close my POS

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
errorpospoint_of_saleodoo11
6 Risposte
5852 Visualizzazioni
Avatar
martin allimonier

Hi i'm getting this error when i close one of my point of sale on odoo.


Erreur:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/fields.py", line 944, in __get__
value = record.env.cache.get(record, self)
File "/home/odoo/odoo/odoo/api.py", line 960, in get
value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x7fd2f32bf668>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 646, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo/odoo/http.py", line 307, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/odoo/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo/odoo/http.py", line 339, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/odoo/http.py", line 332, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/odoo/odoo/http.py", line 927, in __call__
return self.method(*args, **kw)
File "/home/odoo/odoo/odoo/http.py", line 512, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 928, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/odoo/addons/web/controllers/main.py", line 916, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/odoo/addons/point_of_sale/models/pos_session.py", line 257, in action_pos_session_closing_control
session.action_pos_session_close()
File "/home/odoo/odoo/addons/point_of_sale/models/pos_session.py", line 285, in action_pos_session_close
self.with_context(ctx)._confirm_orders()
File "/home/odoo/odoo/addons/point_of_sale/models/pos_session.py", line 29, in _confirm_orders
orders.with_context(force_company=company_id)._create_account_move_line(session, move)
File "/home/odoo/odoo/addons/point_of_sale/models/pos_order.py", line 360, in _create_account_move_line
move.sudo().post()
File "/home/odoo/odoo/addons/account/models/account_move.py", line 166, in post
return self.write({'state': 'posted'})
File "/home/odoo/odoo/addons/l10n_fr_certification/models/account.py", line 92, in write
'l10n_fr_hash': move._get_new_hash(new_number)}
File "/home/odoo/odoo/addons/l10n_fr_certification/models/account.py", line 39, in _get_new_hash
return self._compute_hash(prev_move.l10n_fr_hash if prev_move else '')
File "/home/odoo/odoo/addons/l10n_fr_certification/models/account.py", line 45, in _compute_hash
hash_string = sha256(previous_hash + self.l10n_fr_string_to_hash)
File "/home/odoo/odoo/odoo/fields.py", line 948, in __get__
self.determine_value(record)
File "/home/odoo/odoo/odoo/fields.py", line 1059, in determine_value
self.compute_value(recs)
File "/home/odoo/odoo/odoo/fields.py", line 1015, in compute_value
self._compute_value(records)
File "/home/odoo/odoo/odoo/fields.py", line 1006, in _compute_value
getattr(records, self.compute)()
File "/home/odoo/odoo/addons/l10n_fr_certification/models/account.py", line 68, in _compute_string_to_hash
separators=(',',':'))
File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
**kw).encode(obj)
TypeError: __init__() got an unexpected keyword argument 'encoding'


i don t have modify anything on my odoo instance.


Thanks for help.

1
Avatar
Abbandona
Ermin Trevisan

Please read the traceback and do not only copy/paste it. That way you can learn that you have a very clear and specific problem in your module l10n_fr_certification. Now provide this information in your question title and you improve your chance to get a valuable answer. Not that difficult, isn't it?

Fash Fadaei

You don't have to be a jerk dude! It is a legit question. Not everyone is an expert.

Avatar
Fash Fadaei
Risposta migliore

Try uninstalling the fr_certification module... That may fix the problem... If it does, you should see if there is an update for it...

2
Avatar
Abbandona
martin allimonier
Autore

Thank you for answering, i have already try, it work but i need this module (french legislation)

Fash Fadaei

Did you check to see if there is an update for the module?

Is it a third-party app? If so, you might contact the developer for support or to see if there is an update available

martin allimonier
Autore

No i have the last version, this is an odoo apps but we don t have yet any answering

Avatar
Fash Fadaei
Risposta migliore

It is also possible that you may have the wrong version for your Odoo version... 

1
Avatar
Abbandona
martin allimonier
Autore

This is the good version (cloned from github)

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Extend POS order model to add custom field Risolto
pos point_of_sale odoo11
Avatar
Avatar
Avatar
2
feb 22
11713
Error when installing app: "ALL POS Reports in Odoo"
error pos point_of_sale
Avatar
Avatar
2
set 21
2637
Issues with creating of pos.order in pos.ui.
error pos point_of_sale
Avatar
1
mar 18
4723
Problems when closing session in POS - Odoo v16
error pos point_of_sale Point Of Sale
Avatar
0
set 23
2141
Point of sale image src call javaScript variable
javascript pos point_of_sale odoo11
Avatar
0
mar 19
4077
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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