تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3587 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 18
5671
0
يونيو 17
5464
2
يوليو 25
4773
1
مايو 25
1040
2
فبراير 25
9836