Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3618 Lượt xem

I'm started getting a 500: Internal Server Error when I click next on the page where you enter your address. The url for the controller is /shop/address

And I get only unicode error, but I can fill the form with only unicode characters and it throws the error also.

Does someone knows what is the problem?

 Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/home/odoo/odoo10/odoo/netsvc.py", line 108, in format
    return DBFormatter.format(self, record)
  File "/home/odoo/odoo10/odoo/netsvc.py", line 102, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 2535: ordinal not in range(128)
Ảnh đại diện
Huỷ bỏ

Please use a meaningful title which refers to the error message and the context next time.

Tác giả Câu trả lời hay nhất

The problem was because GDPR module. When it wanted do generate a new partner id didn't let it because of a gdpr required field. Had to override the _checkout_form_save in website_sale/controllers/main.py and added the reuqired field to the dict.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 18
5683
0
thg 6 17
5476
2
thg 7 25
4782
1
thg 5 25
1045
2
thg 2 25
9854