This question has been flagged
1 Reply
2275 Views

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)
Avatar
Discard

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

Author Best Answer

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.

Avatar
Discard