Hi there, Works fine before. Now i get error below.
Can someone help on the rigth track to solve this?
Thanks
TypeError: argument should be a bytes-like object or ASCII string, not 'bool'
Error:
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/odoo/odoo-server/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 747, in call_kw
return _call_kw_model_create(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 727, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "</usr/local/lib/python3.6/dist-packages/decorator.py:decorator-gen-151>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/odoo/odoo-server/addons/digest/models/res_users.py", line 12, in create
user = super(ResUsers, self).create(vals)
File "</usr/local/lib/python3.6/dist-packages/decorator.py:decorator-gen-122>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/odoo/odoo-server/addons/auth_signup/models/res_users.py", line 219, in create
user.with_context(create_user=True).action_reset_password()
File "/odoo/odoo-server/addons/auth_signup/models/res_users.py", line 201, in action_reset_password
template.with_context(lang=user.lang).send_mail(user.id, force_send=True, raise_exception=True)
File "/odoo/odoo-server/addons/mail/models/mail_template.py", line 555, in send_mail
mail.send(raise_exception=raise_exception)
File "/odoo/odoo-server/addons/mail/models/mail_mail.py", line 263, in send
smtp_session=smtp_session)
File "/odoo/odoo-server/addons/mail/models/mail_mail.py", line 297, in _send
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]
File "/odoo/odoo-server/addons/mail/models/mail_mail.py", line 297, in <listcomp>
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]
File "/usr/lib/python3.6/base64.py", line 80, in b64decode
s = _bytes_from_decode_data(s)
File "/usr/lib/python3.6/base64.py", line 46, in _bytes_from_decode_data
"string, not %r" % s.__class__.__name__) from None
TypeError: argument should be a bytes-like object or ASCII string, not 'bool'