Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
38 Views
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'

Avatar
Discard

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

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!