Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

change simple report challenge, showing error Failed to render template : 'goal' is undefined

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
gamificationchallenge
1 Répondre
3616 Vues
Avatar
Lewi S. Kristianto

want to change before template email, to format for thousand separator 

(but this also not working) 

after changing email template, now showing error Failed to render template : 'goal' is undefined

already revert html code and also the translation, but it none helps


https://drive.google.com/file/d/1Rm1pzWIMkD4_1dPbkllpEu2tbkC06Dzw/view?usp=sharing 

https://drive.google.com/file/d/1RjqzvmRLFlfmtPHvdvE0zobRWL1gC2_p/view?usp=sharing 


file templates: 

https://drive.google.com/file/d/1RmRAkbQX2ivmNx_Pp-a3n5YBJwm8vLUl/view?usp=sharing


it works a day before, don't know what happened, as this should change email template only, 

creating new email template, dont help either, how to check for the problem cause?


in the log showing this error:

odoo journal[45279]: Odoo Server 14.0+e-20210930:Final6:INFO:odoo.addons.mail.models.mail_render_mixin:Failed to render template : 'goal' is undefined#012Traceback (most recent call last):#012 File "/opt/odoo/odoo14/odoo/addons/mail/models/mail_render_mixin.py", line 352, in _render_template_jinja#012 render_result = template.render(variables)#012 File "/opt/odoo/odoo14-venv-python3.8.6/lib64/python3.8/site-packages/jinja2/environment.py", line 1090, in render#012 self.environment.handle_exception()#012 File "/opt/odoo/odoo14-venv-python3.8.6/lib64/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception#012 reraise(*rewrite_traceback_stack(source=source))#012 File "/opt/odoo/odoo14-venv-python3.8.6/lib64/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise#012 raise value.with_traceback(tb)#012 File "", line 173, in top-level template code#012 File "/opt/odoo/odoo14-venv-python3.8.6/lib64/python3.8/site-packages/jinja2/sandbox.py", line 384, in getitem#012 return obj[argument]#012jinja2.exceptions.UndefinedError: 'goal' is undefined

0
Avatar
Ignorer
Avatar
Lewi S. Kristianto
Auteur Meilleure réponse

odoo seems reformat for the html that put loop for in the wrong line:

% for goal in line[''goals'']:
% set tdBgColor = ''#fff''
% set tdColor = ''gray''
% set mutedColor = ''#AAAAAA''
% set tdPercentageColor = ''#9A6C8E''
table html div and stuff
% endfor


it should format like this in the sql, manually update in database:

https://drive.google.com/file/d/1Rvj73Tk6IPb_RN_3FxZC1NOFWzUywQQ2/view?usp=sharing 


0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Set a challenge based on badges awarded
badge gamification challenge
Avatar
Avatar
3
mai 22
6396
Employee Challenges & Badges in V18
employees gamification badges challenge
Avatar
0
janv. 25
1852
Gamification in Enterprise 16
gamification
Avatar
Avatar
1
nov. 23
2917
How to automatically update value in gamification ?
gamification
Avatar
0
sept. 21
2772
Gamification module reporting in v8 Résolu
gamification
Avatar
Avatar
1
mars 15
5400
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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