Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing-
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

sending mail from odoo; python script problem (?)

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
sending mail with attachment
1 Antworten
8061 Ansichten
Avatar
MONEO Tomasz Serwanski

Hello,

 

Just configured external email accounts (odoo is working on vps, while my mails provider works on other servers); configuring outgoing & incoming mail seem to be successful (odoo says it works at least).

I am able to send 'plain' mail (for example by 'reply' to any mail from inbox history); in logs I see after:

2014-11-17 12:40:40,503 1993 INFO MundoMio openerp.addons.mail.mail_mail: Mail with ID 9 and Message-Id u'<1416228037.600449085235596.120677993934762-openerp-6-sale.order@xxxxxxxxx.ovh.net>' successfully sent

What is interesting when trying to send any mail with attachment (for example sale quotation), it seems to be impossible; logs say:

2014-11-17 12:39:27,246 1993 ERROR MundoMio openerp.addons.mail.mail_mail: failed sending mail.mail 8
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/addons/mail/mail_mail.py", line 254, in send
    ['datas_fname', 'datas'])]
  File "/usr/lib/python2.7/base64.py", line 73, in b64decode
    return binascii.a2b_base64(s)
TypeError: must be string or buffer, not bool

Unfortunately my python knowledge is minimal, but it seem to me there is problem with handling mails with attachments. What may also shed some light, when I am browsing inbox -> archive, when trying to open any attachment shown in archive as sent, web page opens with message:

Not Found

The requested URL was not found on the server.

If you entered the URL manually please check your spelling and try again.

and relevant entries in log are:

2014-11-17 12:45:18,812 1993 WARNING MundoMio openerp.http: <function openerp.addons.mail.controllers.main.download_attachment> returns an invalid response type for an http request
2014-11-17 12:45:18,817 1993 INFO MundoMio werkzeug: 89.78.255.67 - - [17/Nov/2014 12:45:18] "GET /mail/download_attachment?model=mail.message&id=96&method=download_attachment&attachment_id=58 HTTP/1.1" 404 -

Did anyone faced similar problem? If so, what was solution?

 

regards

Tomasz

 

 

0
Avatar
Verwerfen
Avatar
MONEO Tomasz Serwanski
Autor Beste Antwort

hello,

believe found something what may help a bit:

- I can send mail with attachment; can send mail from any page in odoo, can add attachment and send it - only condition is that the attachment needs to be uploaded from local pc; then it works

- if mail is to be sent with attachmet alread loaded (or the one which should be loaded) to server/cache (not sure), then send will fail; message as above (..must be string or buffer, not bool..) suggests, that when sending such an attachment odoo finds only nulll in place, where attachment should be located.

In my case mentioned attachmets are created by 'event' module (I've created events, and I am selling them via odoo webpage); when person is buying ticket, he/she comes through purchase process, which ends up with message '..your order will be processed..'. From his/her point of view all seems ok, except fact that mail sent by odoo does not reach customer (ends with error as above). Because of that, I believe that event and/or ecommerce module creates attachments in somehow wrong way, but I am unable to fing out what may be wrong. As a workaround I would like to change mail template to disable adding attachmet to it - but have no idea where to look for mail templates; anyone can advice?

 

reagrds

Tomasz

 

 

..and finally found answer - seems that similar problems are in place always when:

- odoo needs to create .pdf attachment, and

- whhtmltopdf is not configured/installed correctly

Just fixed problems with wkhtmltopodf and problem is solved. Hope above may help someone with similar issues.

 

regards

Tomasz

1
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
Odoo 9 how to send an email with binary field attached
mail sending mail with attachment
Avatar
0
Dez. 19
3219
error when sending quotation
sales sending mail with attachment qweb-report
Avatar
0
Feb. 22
3099
Odoo 13 Attach a file in email template Gelöst
attachment sending mail with attachment Odoo13.0
Avatar
1
Aug. 20
13380
Odoo Online: Send only one PDF (Factur-X / ZUGFeRD) without separate XML attachment
mail invoice sending mail with attachment facturx SendByMail
Avatar
0
Nov. 25
402
when I send a massage in automation it puts in delivery failed
help automatic_email sending mail with attachment help.odoo.com Deliveryfailed
Avatar
0
Juli 24
1346
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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