Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

500 Internal Server Error (purchase module)

Odebírat

Get notified when there's activity on this post

This question has been flagged
errorErrorTraceback
2 Odpovědi
6420 Zobrazení
Avatar
Max Baldwin

Hello everybody,

We are trying to implement purchasing in Odoo 12 CE. The problem we are having is when a vendor clicks the link that we send them they are shown a "500 Internal Server Error". I tracked down the log entry and I will post it below. Any help in resolving this issue would be greatly appreciated.


2019-01-25 14:39:51,495 955 INFO odoo odoo.addons.base.models.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: purchase.order 
2019-01-25 14:39:51,545 955 ERROR odoo odoo.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 344, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_1332_4912
  File "<template>", line 2, in body_call_content_4911
  File "<template>", line 35, in foreach_4907
  File "/usr/lib/python3/dist-packages/odoo/tools/image.py", line 330, in image_data_uri
    FILETYPE_BASE64_MAGICWORD.get(base64_source[:1], 'png'),
TypeError: 'bool' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
    result = request.dispatch()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 832, in dispatch
    r = 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 340, in checked_call
    result.flatten()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1267, in flatten
    self.response.append(self.render())
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1260, in render
    return env["ir.ui.view"].render_template(self.template, self.qcontext)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1276, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 231, in render
    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render
    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1285, in render
    return self.env[engine].render(self.id, qcontext)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 59, in render
    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 272, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 351, in _compiled_fn
    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.models.qweb.QWebException: 'bool' object is not subscriptable
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 344, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_1332_4912
  File "<template>", line 2, in body_call_content_4911
  File "<template>", line 35, in foreach_4907
  File "/usr/lib/python3/dist-packages/odoo/tools/image.py", line 330, in image_data_uri
    FILETYPE_BASE64_MAGICWORD.get(base64_source[:1], 'png'),
TypeError: 'bool' object is not subscriptable

Error to render compiling AST
TypeError: 'bool' object is not subscriptable
Template: 1332
Path: /templates/t/t/div[2]/div/div[2]/t/div/div[1]/img
Node: <img t-att-src="image_data_uri(resize_to_48(ol.product_id.image))" alt="Product"/>
                  
 
2019-01-25 14:39:51,551 955 INFO odoo werkzeug: 96.92.191.54 - - [25/Jan/2019 14:39:51] "GET /my/purchase/4?model=purchase.order&res_id=4&access_token=8259b09a-7819-4dad-bab5-070b22a067fd HTTP/1.1" 500 - 53 0.021 0.045
2019-01-25 14:39:51,737 955 INFO odoo werkzeug: 96.92.191.54 - - [25/Jan/2019 14:39:51] "GET /web/webclient/qweb?mods= HTTP/1.1" 200 - 1 0.000 0.003
2019-01-25 14:39:51,739 955 INFO odoo werkzeug: 96.92.191.54 - - [25/Jan/2019 14:39:51] "POST /web/webclient/bootstrap_translations HTTP/1.1" 200 - 1 0.000 0.002
2019-01-25 14:40:06,875 955 INFO odoo werkzeug: 127.0.0.1 - - [25/Jan/2019 14:40:06] "POST /longpolling/poll HTTP/1.1" 200 - 9 0.003 50.008
Thanks in advance for any help.
-1
Avatar
Zrušit
Ermin Trevisan

Please use a meaningful title next time and not the generic error message.

Avatar
Max Baldwin
Autor Nejlepší odpověď

I'm not sure that is the problem. I exported some data, I'd be very grateful if you would take a look.


id name model transient access_ids/id access_ids/name access_ids/active access_ids/perm_create access_ids/perm_unlink access_ids/group_id access_ids/group_id/id access_ids/perm_read access_ids/perm_write website_form_access field_id/id field_id/name field_id/website_form_blacklisted field_id/copied field_id/help field_id/field_description field_id/ttype field_id/groups field_id/index field_id/model field_id/relation field_id/on_delete field_id/readonly field_id/required field_id/selectable field_id/size field_id/store field_id/track_visibility field_id/translate
base.model_ir_model_access Model Access ir.model.access FALSE base.access_ir_model_access_group_erp_manager ir_model_access_group_erp_manager TRUE TRUE TRUE Administration / Access Rights base.group_erp_manager TRUE TRUE FALSE base.field_ir_model_access____last_update __last_update TRUE FALSE Last Modified on datetime FALSE FALSE ir.model.access FALSE TRUE FALSE FALSE FALSE FALSE FALSE
base.field_ir_model_access__active active TRUE TRUE If you uncheck the active field, it will disable the ACL without deleting it (if you delete a native ACL, it will be re-created when you reload the module). Active boolean FALSE FALSE ir.model.access FALSE FALSE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__create_date create_date TRUE TRUE Created on datetime FALSE FALSE ir.model.access FALSE TRUE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__create_uid create_uid TRUE TRUE Created by many2one FALSE FALSE ir.model.access res.users Set NULL TRUE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__display_name display_name TRUE FALSE Display Name char FALSE FALSE ir.model.access FALSE TRUE FALSE FALSE 0 FALSE FALSE FALSE
base.field_ir_model_access__group_id group_id TRUE TRUE Group many2one FALSE TRUE ir.model.access res.groups Cascade FALSE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__id id TRUE TRUE ID integer FALSE FALSE ir.model.access FALSE TRUE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__model_id model_id TRUE TRUE Object many2one FALSE TRUE ir.model.access ir.model Cascade FALSE TRUE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__name name TRUE TRUE Name char FALSE TRUE ir.model.access FALSE FALSE TRUE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__perm_create perm_create TRUE TRUE Create Access boolean FALSE FALSE ir.model.access FALSE FALSE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__perm_read perm_read TRUE TRUE Read Access boolean FALSE FALSE ir.model.access FALSE FALSE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__perm_unlink perm_unlink TRUE TRUE Delete Access boolean FALSE FALSE ir.model.access FALSE FALSE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__perm_write perm_write TRUE TRUE Write Access boolean FALSE FALSE ir.model.access FALSE FALSE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__write_date write_date TRUE TRUE Last Updated on datetime FALSE FALSE ir.model.access FALSE TRUE FALSE TRUE 0 TRUE FALSE FALSE
base.field_ir_model_access__write_uid write_uid TRUE TRUE Last Updated by many2one FALSE FALSE ir.model.access res.users Set NULL TRUE FALSE TRUE 0 TRUE FALSE FALSE
0
Avatar
Zrušit
Michael Douglas

What link from this module to give me a better look? So it looks like the access permissions are correct, or is it some error in the module or is it some operation error

Max Baldwin
Autor

What link do you require? The link being clicked on the user end is: /mail/view?model=purchase.order&res_id=5&access_token=7a171e82-5389-4099-838a-588e98e36adf

Avatar
Michael Douglas
Nejlepší odpověď

I believe the error is found in the security file ir.model.access.csv, where the perm_read permission is 0, give a verified on it.

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
říj 25
421
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
zář 25
1043
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
pro 24
6416
error schema for TourStep Error
error
Avatar
0
lis 24
2483
I am Using Odoo 18 & facing Technical Server Error?
error technical ErrorTraceback ServerError
Avatar
Avatar
1
lis 24
2472
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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