İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Odoo 9 mail template problems

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
errortemplatesmailingodoo9
2 Cevaplar
6414 Görünümler
Avatar
Mikhail Komov

I have a problem with sending email as a server action.

when I get new lead I wanna send email. I've done server action, but when I choose template "reminder to user" it doesn't send anything and I see this error:

Failed to load template u'\u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u043e \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u0435: ${object.id} from ${object.partner_id != False \u0438 object.partner_id.name or object.contact_name}'

Traceback (most recent call last):

File "/opt/odoo/addons/mail/models/mail_template.py", line 331, in render_template

template = mako_template_env.from_string(tools.ustr(template_txt))

File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 841, in from_string

return cls.from_code(self, self.compile(source), globals, None)

File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 554, in compile

self.handle_exception(exc_info, source_hint=source)

File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception

reraise(exc_type, exc_value, tb)

File "<unknown>", line 1, in template

TemplateSyntaxError: unexpected char u'\u0438' at 72


If I create my own template - it doesn't send anything and there is no any message in logs.


Can someone help me?

0
Avatar
Vazgeç
Avatar
Yesenia
En İyi Yanıt

Hello, I have a similar problem with the purchase module, after confirming a purchase order if I want to send by email, I get this error, I have not made modifications on the module or translations.

Could help me see what the error is?


odoo.addons.mail.models.mail_template: Failed to load template u'\n<p style="margin:0px 0px 9px 0px;">Hola ${object.partner_id.name} \n% if object.partner_id.parent_id:\n    (<i>${object.partner_id.parent_id.name}</i>)\n% endif\n,</p>\n<p style="margin:0px 0px 9px 0px;">\nAdjunto le remito la <strong style="font-weight:bold;">${object.state in (\'draft\', \'sent\') and \'solicitud de presupuesto\' or \'confirmaci\xf3n de pedido de compra} ${object.name}</strong>\n% if object.partner_ref:\n    con su referencia: ${object.partner_ref}\n% endif\n% if object.origin:\n    (referencia de pedido: ${object.origin})\n% endif\nTotal del pedido <strong style="font-weight:bold;">${object.amount_total} ${object.currency_id.name}</strong>\nde ${object.company_id.name}.\n</p>\n\n<p style="margin:0px 0px 9px 0px;">Si tiene alguna duda, puede responder este email.</p>\n<p style="margin:0px 0px 9px 0px;">Gracias,</p>\n'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/odoo/addons/mail/models/mail_template.py", line 374, in render_template
    template = mako_env.from_string(tools.ustr(template_txt))
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 841, in from_string
    return cls.from_code(self, self.compile(source), globals, None)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 554, in compile
    self.handle_exception(exc_info, source_hint=source)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "<unknown>", line 8, in template
TemplateSyntaxError: unexpected char u"'" at 326


I think it is a bug of Odoo, because I made a new configuration, only installing the module and sending the order and confirming generates the error. I'm using odoo 10

0
Avatar
Vazgeç
Avatar
Anton Chepurov
En İyi Yanıt

You need to "un-translate" the template.

Settings > Email > Templates > search for "Reminder to User" template and open it > Edit > on the Subject field hit the blue translation button > in the Russian Translation Value change this (note the word in bold ):

Напоминание о кандидате: ${object.id} from ${object.partner_id != False и object.partner_id.name or object.contact_name}

to this:

Напоминание о кандидате: ${object.id} from ${object.partner_id != False and object.partner_id.name or object.contact_name}

This should solve the issue, although I haven't tried it myself.

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

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Error when sending email with template in Odoo 9
mail error templates template odoo9
Avatar
2
Eki 17
4997
Odoo 10 sale order send by email error when confirm send email , template render error
error templates odoo10
Avatar
0
Şub 19
4630
[solved] [odoo-9] : Which lib is missing to resolve this error? Çözüldü
error lessc odoo9
Avatar
Avatar
Avatar
Avatar
Avatar
7
Ara 23
26387
template library in mass mailing
templates marketing mailing
Avatar
Avatar
Avatar
3
Eki 17
4828
Template overriding conflicts - if I overide a same Template twice or overides in different pluggins, Which one will affected?
templates override odoo9
Avatar
Avatar
1
Haz 17
6808
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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