Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3529 Представления

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)
Аватар
Отменить

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

Автор Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июн. 18
5626
0
июн. 17
5439
2
июл. 25
4691
1
мая 25
1020
2
февр. 25
9820