Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    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 Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and 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
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

[Odoo 11] Error when i close my POS

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
errorpospoint_of_saleodoo11
6 Răspunsuri
5832 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
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.

Imagine profil
Fash Fadaei
Cel mai bun răspuns

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
Imagine profil
Abandonează
martin allimonier
Autor

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
Autor

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

Imagine profil
Fash Fadaei
Cel mai bun răspuns

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

1
Imagine profil
Abandonează
martin allimonier
Autor

This is the good version (cloned from github)

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Extend POS order model to add custom field Rezolvat
pos point_of_sale odoo11
Imagine profil
Imagine profil
Imagine profil
2
feb. 22
11635
Error when installing app: "ALL POS Reports in Odoo"
error pos point_of_sale
Imagine profil
Imagine profil
2
sept. 21
2624
Issues with creating of pos.order in pos.ui.
error pos point_of_sale
Imagine profil
1
mar. 18
4690
Problems when closing session in POS - Odoo v16
error pos point_of_sale Point Of Sale
Imagine profil
0
sept. 23
2118
Point of sale image src call javaScript variable
javascript pos point_of_sale odoo11
Imagine profil
0
mar. 19
4064
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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