Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
523 Widoki
When I want to comment on a customer ticket from the web, not from the helpdesk, clicking send to comment generates the following error:

500 Internal Server Error

Traceback (most recent call last):
  File "/home/cust/odoo/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
    result = request.dispatch()
  File "/home/cust/odoo/odoo/http.py", line 833, in dispatch
    r = self._call_function(**self.params)
  File "/home/cust/odoo/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/cust/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/cust/odoo/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/cust/odoo/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/home/cust/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/cust/odoo/addons/portal/controllers/mail.py", line 75, in portal_chatter_post
    url = url + "#discussion"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,The error message you're seeing indicates that there's an unsupported operation involving a NoneType object and a string concatenation operation (+). This error is occurring in the Odoo portal module, specifically in the portal_chatter_post method of the mail.py controller file.

The problem seems to be related to the url variable being None, and then an attempt is made to concatenate a string to it using the + operator. This typically happens when a variable is expected to have a value but ends up being None.
Please check the code whether the URL variable is properly initialized and assigned a value before it's used.


Hope it helps

Awatar
Odrzuć
Autor

Thank you very much for your help, it was very supportive.

Najlepsza odpowiedź

It seems that you are on the preview mode.
Dit you try to access it via your portal ?

Awatar
Odrzuć