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

Internal Server Error after payment completes

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo16features
2 Replies
2749 Views
Avatar
Nat

After processing a payment(via stripe if it matters), odoo attempts to show the Payment Status, but instead it shows Internal Server Error and dumps the QWEB template that it's unable to render. I created a duplicate test instance and am able to reproduce the issue.

I looked at the QWEB for this page, and verified I haven't modified it at all, it has very little content it just has a comment that JS will fill in the page. That seems to be what's failing since the headers and footers render fine. Is there anyway to get an error log so I can figure out what's happening? The output on the site isn't helpful since it's just the qweb that won't render, but doesn't have a backtrace or indicate why it failed to render.

In the duplicate instance I disabled all my qweb customizations, and the issue persists. I'm kinda at a loss, and it's a very disconcerting experience for customers, even though the order processes fine, and they get the confirmation emails.

0
Avatar
Discard
Avatar
Nat
Author Best Answer

For anyone else who runs into this I've tracked down the source of the issue. It's not very intuitive though. I modified the "Sales: Order Confirmation" email template, and introduced an error there. This is somehow used in generating the web payment confirmation screen, which seems well a little bizarre/hacky to me, but was probably done to cut down on maintenance.

After resetting this template all is working again.

1
Avatar
Discard
Avatar
NAIBI BEHZAD
Best Answer

hello, can you please detail your solution and how to introduce an error in the email template? THANKS

0
Avatar
Discard
Nat
Author

The solution was to reset the email template to the default. I think there is a QWEB that depends on the email template and if there is missing content the inherited view fails to render. I'm not sure if this is still an issue in he latest version we were on 16.something at the time.

NAIBI BEHZAD

Hello Nat,
can you please give me your opinion on our "server error"? Thank you

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo-v16-community/odoo/http.py", line 1633, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/odoo-v16-community/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/odoo-v16-community/odoo/http.py", line 1660, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/odoo-v16-community/odoo/http.py", line 1864, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/home/odoo/odoo-v16-community/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/odoo-v16-community/odoo/http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/web/controllers/dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo-v16-community/odoo/api.py", line 470, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/odoo-v16-community/odoo/api.py", line 455, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/sale/wizard/sale_make_invoice_advance.py", line 149, in create_invoices
self._create_invoices(self.sale_order_ids)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/sale/wizard/sale_make_invoice_advance.py", line 161, in _create_invoices
return sale_orders._create_invoices(final=self.deduct_down_payments)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/sale/models/sale_order.py", line 1199, in _create_invoices
moves = self.env['account.move'].sudo().with_context(default_move_type='out_invoice').create(invoice_vals_list)
File "<decorator-gen-206>", line 2, in create
File "/home/odoo/odoo-v16-community/odoo/api.py", line 417, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/account/models/account_move.py", line 2225, in create
moves = super().create([self._sanitize_vals(vals) for vals in vals_list])
File "<decorator-gen-135>", line 2, in create
File "/home/odoo/odoo-v16-community/odoo/api.py", line 417, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/mail/models/mail_thread.py", line 258, in create
threads = super(MailThread, self).create(vals_list)
File "<decorator-gen-68>", line 2, in create
File "/home/odoo/odoo-v16-community/odoo/api.py", line 417, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo-v16-community/odoo/addons/base/models/ir_fields.py", line 670, in create
recs = super().create(vals_list)
File "<decorator-gen-15>", line 2, in create
File "/home/odoo/odoo-v16-community/odoo/api.py", line 417, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo-v16-community/odoo/models.py", line 3975, in create
records = self._create(data_list)
File "/home/odoo/odoo-v16-community/odoo/models.py", line 4227, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "/home/odoo/odoo-v16-community/odoo/models.py", line 1359, in _validate_fields
check(self)
File "/home/odoo/odoo-v16-community/odoo/models.py", line 762, in wrapper
return func(self)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/account/models/sequence_mixin.py", line 81, in _constrains_date_sequence
sequence = record[record._sequence_field]
File "/home/odoo/odoo-v16-community/odoo/models.py", line 5915, in __getitem__
return self._fields[key].__get__(self, self.env.registry[self._name])
File "/home/odoo/odoo-v16-community/odoo/fields.py", line 1158, in __get__
self.recompute(record)
File "/home/odoo/odoo-v16-community/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/home/odoo/odoo-v16-community/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/home/odoo/odoo-v16-community/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/mail/models/mail_thread.py", line 403, in _compute_field_value
return super()._compute_field_value(field)
File "/home/odoo/odoo-v16-community/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/home/odoo/odoo-v16-community/odoo/fields.py", line 98, in determine
return needle(*args)
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/account/models/account_move.py", line 689, in _compute_name
move._set_next_sequence()
File "/home/odoo/odoo-16.0+e.20230516/odoo/addons/account_sequence/models/sequence_mixin.py", line 39, in _set_next_sequence
self.env.add_to_compute(triggered_field, self[field.name] if field else self)
File "/home/odoo/odoo-v16-community/odoo/api.py", line 816, in add_to_compute
assert field.store and field.compute, "Cannot add to recompute no-store or no-computed field "+field.name
AssertionError: Cannot add to recompute no-store or no-computed field made_sequence_hole

Nat
Author

Based on the assertion error it looks like it's having issues with the sequence number so not related to the issue we had, do you use manually specified invoice or quote numbers rather than numbers that can be incremented?

NAIBI BEHZAD

we only use a module to customize the footer and header. but we did not modify the invoice sequences

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
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Solved
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
Sep 25
24140
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
Aug 25
3654
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
May 25
3554
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
Apr 25
4406
How to add decoration color green with bold to a record with a single conditon
odoo16features
Avatar
Avatar
1
Apr 25
5217
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