Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Odoo 13 Mail template issue

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
3 Antwoorden
6257 Weergaven
Avatar
A

I configured outgoing mail server, and set Sales order:Confirmation email to  my Outgoing mail server, everything seems ok, well i didnt test until someone told they are getting error after payment is confirmed ( send recovery email for pending order), but going into the website, trying to make a sale and payment using stripe, the payment to stripe work but, but for odor to return to confirmation page and send confirmation email to customer, then an internal server error occur with the logs below.

This process worked before setting up outgoing email server, i set that up because after payment confirmation i dont know where email is going to.


2019-12-12 10:50:12,505 2732 INFO cylockdb werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:12] "GET /payment/stripe/success?reference=S00020-2 HTTP/1.1" 302 - 12 0.012 0.422
2019-12-12 10:50:13,241 2732 INFO cylockdb werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "GET /payment/process HTTP/1.1" 200 - 130 0.157 0.446
2019-12-12 10:50:13,491 2732 INFO ? werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "GET /website_sale_stock/static/src/xml/website_sale_stock_product_availability.xml?debug=1576147813489 HTTP/1.1" 200 - - - -
2019-12-12 10:50:13,565 2732 INFO ? werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "GET /payment_stripe/static/src/xml/stripe_templates.xml?debug=1576147813567 HTTP/1.1" 200 - - - -
2019-12-12 10:50:13,572 2732 INFO cylockdb werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "POST /web/dataset/call_kw/ir.ui.view/render_template HTTP/1.1" 200 - 3 0.003 0.014
2019-12-12 10:50:13,590 2732 INFO ? werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "GET /payment/static/src/xml/payment_processing.xml?debug=1576147813591 HTTP/1.1" 200 - - - -
2019-12-12 10:50:13,637 2732 INFO cylockdb odoo.http: <function odoo.addons.web.controllers.main.call> called ignoring args <kwargs={'context': {'lang': 'en_US'}}>
2019-12-12 10:50:13,642 2732 INFO ? werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "GET /web/static/src/xml/debug.xml?debug=1576147813636 HTTP/1.1" 200 - - - -
2019-12-12 10:50:13,650 2732 INFO cylockdb werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "POST /web/dataset/call HTTP/1.1" 200 - 3 0.004 0.017
2019-12-12 10:50:13,655 2732 INFO cylockdb werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "POST /web/dataset/call_kw/ir.ui.view/render_template HTTP/1.1" 200 - 3 0.003 0.018
2019-12-12 10:50:13,725 2732 INFO ? werkzeug: 192.168.0.26 - - [12/Dec/2019 10:50:13] "GET /website/static/src/xml/website.editor.xml?debug=1576147813694 HTTP/1.1" 200 - - - -
2019-12-12 10:50:14,223 2732 INFO cylockdb odoo.addons.mail.models.mail_template: Failed to render template <Template memory:7fd859bfd6d8> using values {'format_date': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c9598>, 'format_datetime': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c9048>, 'format_amount': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c9f28>, 'format_duration': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c97b8>, 'user': res.users(2,), 'ctx': {'lang': 'en_US', 'tz': 'America/Los_Angeles', 'uid': 2, 'force_send': True, 'active_id': 20, 'active_ids': [20], 'active_model': 'sale.order', 'default_composition_mode': 'comment', 'default_model': 'sale.order', 'default_res_id': 20, 'default_template_id': 12, 'custom_layout': 'mail.mail_notification_paynow', 'tpl_partners_only': True, 'safe': False}, 'object': sale.order(20,)}
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 287, in _render_template
render_result = template.render(variables)
File "/usr/local/lib/python3.6/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 46, in top-level template code
File "/usr/local/lib/python3.6/dist-packages/jinja2/sandbox.py", line 385, in getattr
value = getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'loop' is undefined
2019-12-12 10:50:14,227 2732 ERROR cylockdb odoo.addons.payment.controllers.portal: Error while processing transaction(s) [9], exception "("Failed to render template <Template memory:7fd859bfd6d8> using values {'format_date': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c9598>, 'format_datetime': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c9048>, 'format_amount': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c9f28>, 'format_duration': <function MailTemplate._render_template.<locals>.<lambda> at 0x7fd8692c97b8>, 'user': res.users(2,), 'ctx': {'lang': 'en_US', 'tz': 'America/Los_Angeles', 'uid': 2, 'force_send': True, 'active_id': 20, 'active_ids': [20], 'active_model': 'sale.order', 'default_composition_mode': 'comment', 'default_model': 'sale.order', 'default_res_id': 20, 'default_template_id': 12, 'custom_layout': 'mail.mail_notification_paynow', 'tpl_partners_only': True, 'safe': False}, 'object': sale.order(20,)}", '')"
Traceback (most recent call last):

0
Avatar
Annuleer
Avatar
van oers consultancy
Beste antwoord

Hi Fabio,

I had the same issue withe the email template. The problem is the footer with field : object.user_id.company_id.e-mail. Odoo has renamed this field to object.user_id.company_id.email
Change this and my problem was solved. Maybe this will hel to solve yours


0
Avatar
Annuleer
Avatar
Fabio Tielen
Beste antwoord

Did you found a fix/solution for your problem? 
I have exactly the same problem but with "grant portal access" template. All other templates just load fine, except this one. 
It's a fresh Odoo setup 13. 
When I keep everything at 1 single language English, there is no problem. 
As soon as I load an extra Translation Dutch, the problem kicks in and it also breaks the English template. 

Odoo support is less than useful than ever and only cares about selling a success pack as this clearly is somewhere a bug when somebody loads default translations. 
I didn't even touch the templates, it happens straight out of the box from a new install. 

1
Avatar
Annuleer
Avatar
Chris Kelley
Beste antwoord

for any one else with a similar issue, I think odoo did an update which changes a field and they also changed the template to reflect the field change  - except it didnt update the translations (Australian in my case)

I just cut and past the US template body into my AU template body and all worked



0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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