Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
522 Zobrazení
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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Nejlepší odpověď

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

Avatar
Zrušit