Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

cant create a new user

Naroči se

Get notified when there's activity on this post

This question has been flagged
error
2 Odgovori
4576 Prikazi
Avatar
Lüers MV GmbH

when i try to create a new user, i get an error message. i dont know when this error starts to occure so i dont know which addon or module is faulty... hopefully some of you can read this and give me a hint. This is the odoo debug log.


2019-08-03 00:52:17,743 55 DEBUG lueers-mv odoo.modules.registry: Multiprocess signaling check: [Registry - 214 -> 214] [Cache - 7638 -> 7638]
2019-08-03 00:52:17,762 55 DEBUG lueers-mv odoo.api: call res.users().create({'sel_groups_45_46': False, 'in_group_37': True, 'active': True, 'signature': '<p><br></p>', 'in_group_108': False, 'in_group_94': True, 'sel_groups_95_96': False, 'signup_type': False, 'in_group_35': True, 'in_group_97': True, 'in_group_48': True, 'in_group_71': False, 'in_group_32': True, 'in_group_19': False, 'in_group_47': True, 'in_group_39': True, 'alias_id': False, 'sel_groups_109': 109, 'in_group_93': False, 'alias_contact': False, 'sel_groups_2_3': False, 'sel_groups_53_54': False, 'company_id': 1, 'in_group_61': True, 'in_group_8': True, 'sel_groups_21_22_23': 21, 'in_group_42': True, 'sel_groups_1_9_10': 1, 'in_group_62': False, 'sel_groups_75': False, 'in_group_56': True, 'odoobot_state': 'not_initialized', 'send_mail_flag': True, 'sel_groups_80_81': False, 'in_group_69': False, 'name': 'hansmax', 'sel_groups_105_106': 106, 'sel_groups_103_101_102': 102, 'in_group_77': False, 'in_group_58': False, 'in_group_70': True, 'in_group_5': False, '__last_update': False, 'in_group_55': True, 'in_group_76': True, 'oauth_provider_id': False, 'in_group_67': False, 'company_ids': [[6, False, [1]]], 'in_group_59': False, 'login': 'mail@hansmax.de', 'in_group_36': True, 'in_group_98': False, 'notification_type': 'email', 'in_group_6': True, 'in_group_34': True, 'in_group_12': True, 'in_group_60': True, 'in_group_17': False, 'in_group_26': True, 'in_group_13': True, 'in_group_66': True, 'sel_groups_40_41': False, 'sel_groups_99_100': False, 'in_group_57': True, 'in_group_52': True, 'in_group_68': False, 'sel_groups_110_111': 111, 'in_group_38': True, 'sel_groups_43_44': False, 'in_group_16': True, 'in_group_30': False, 'sel_groups_63_64': 63, 'oauth_uid': False, 'action_id': False, 'sel_groups_72_73': False, 'in_group_25': False, 'in_group_7': True, 'in_group_18': True, 'sel_groups_49_50': 49, 'in_group_31': False, 'in_group_4': False, 'in_group_51': True, 'in_group_20': True, 'in_group_11': False, 'image': False, 'code': False, 'email': 'mail@hansmax.de', 'sel_groups_78_79': 78, 'in_group_33': True, 'tz': 'Europe/Berlin', 'in_group_74': False, 'in_group_29': True, 'lang': 'de_DE', 'in_group_27': False, 'in_group_104': True, 'sel_groups_91_92': False, 'sel_groups_65': False, 'sel_groups_24_28': False})
2019-08-03 00:52:21,497 55 ERROR lueers-mv odoo.addons.mail.models.mail_mail: failed sending mail (id: 178) due to argument should be a bytes-like object or ASCII string, not 'bool'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 298, in _send
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 298, in <listcomp>
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]
File "/usr/lib/python3.5/base64.py", line 81, in b64decode
s = _bytes_from_decode_data(s)
File "/usr/lib/python3.5/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'
2019-08-03 00:52:21,530 55 ERROR lueers-mv odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 747, in call_kw
return _call_kw_model_create(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 727, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "<decorator-gen-336>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/mnt/extra-addons/email_verification/models/email_verification.py", line 37, in create
res_id = super(ResUsers, self).create(vals)
File "<decorator-gen-204>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/digest/models/res_users.py", line 12, in create
user = super(ResUsers, self).create(vals)
File "<decorator-gen-193>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/mnt/extra-addons/asterisk_calls/models/user.py", line 32, in create
res = super(ResUser, self).create(vals)
File "<decorator-gen-186>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/sales_team/models/res_users.py", line 17, in create
user = super(ResUsers, self).create(vals)
File "<decorator-gen-132>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 430, in _model_create_single
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/models/res_users.py", line 219, in create
user.with_context(create_user=True).action_reset_password()
File "/usr/lib/python3/dist-packages/odoo/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 "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 559, in send_mail
mail.send(raise_exception=raise_exception)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 264, in send
smtp_session=smtp_session)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 298, in _send
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 298, in <listcomp>
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]
File "/usr/lib/python3.5/base64.py", line 81, in b64decode
s = _bytes_from_decode_data(s)
File "/usr/lib/python3.5/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'

0
Avatar
Opusti
Avatar
Waleed Ali Mohsen
Best Answer

As per the log the error raised from _send method in mail_mail.py as cannot send the email.

ERROR lueers-mv odoo.addons.mail.models.mail_mail: failed sending mail (id: 178) due to argument should be a bytes-like object or ASCII string, not 'bool' 
​

Check python code, line 298 of mail_mail.py file in the following path  /usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 298, in _send
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]

1
Avatar
Opusti
Avatar
Lüers MV GmbH
Avtor Best Answer

This is the code in line 298 and 297. I have not changed anything here.

attachments = [(a['datas_fname'], base64.b64decode(a['datas']), a['mimetype'])
for a in attachments.sudo().read(['datas_fname', 'datas', 'mimetype'])]

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
nov. 25
592
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
sep. 25
1227
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
dec. 24
6788
error schema for TourStep Error
error
Avatar
0
nov. 24
2603
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
jul. 24
5272
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now