Skip to Content
Odoo Menu
  • Prijavi
  • 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
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

[Odoo 11] Error when i close my POS

Naroči se

Get notified when there's activity on this post

This question has been flagged
errorpospoint_of_saleodoo11
6 Odgovori
5829 Prikazi
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
Opusti
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
Best Answer

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
Opusti
martin allimonier
Avtor

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
Avtor

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

Avatar
Fash Fadaei
Best Answer

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

1
Avatar
Opusti
martin allimonier
Avtor

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!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Extend POS order model to add custom field Solved
pos point_of_sale odoo11
Avatar
Avatar
Avatar
2
feb. 22
11630
Error when installing app: "ALL POS Reports in Odoo"
error pos point_of_sale
Avatar
Avatar
2
sep. 21
2622
Issues with creating of pos.order in pos.ui.
error pos point_of_sale
Avatar
1
mar. 18
4686
Problems when closing session in POS - Odoo v16
error pos point_of_sale Point Of Sale
Avatar
0
sep. 23
2104
Point of sale image src call javaScript variable
javascript pos point_of_sale odoo11
Avatar
0
mar. 19
4060
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