Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

cant create a new user

Odoberať

Get notified when there's activity on this post

This question has been flagged
error
2 Replies
4566 Zobrazenia
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
Zrušiť
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
Zrušiť
Avatar
Lüers MV GmbH
Autor 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
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
okt 25
585
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
sep 25
1187
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
dec 24
6714
error schema for TourStep Error
error
Avatar
0
nov 24
2587
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
júl 24
5233
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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