Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

sending mail from odoo; python script problem (?)

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
sending mail with attachment
1 Atsakyti
8060 Rodiniai
Portretas
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
Portretas
Atmesti
Portretas
MONEO Tomasz Serwanski
Autorius Best Answer

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
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

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

Registracija
Related Posts Replies Rodiniai Veikla
Odoo 9 how to send an email with binary field attached
mail sending mail with attachment
Portretas
0
gruod. 19
3219
error when sending quotation
sales sending mail with attachment qweb-report
Portretas
0
vas. 22
3099
Odoo 13 Attach a file in email template Solved
attachment sending mail with attachment Odoo13.0
Portretas
1
rugp. 20
13380
Odoo Online: Send only one PDF (Factur-X / ZUGFeRD) without separate XML attachment
mail invoice sending mail with attachment facturx SendByMail
Portretas
0
lapkr. 25
401
when I send a massage in automation it puts in delivery failed
help automatic_email sending mail with attachment help.odoo.com Deliveryfailed
Portretas
0
liep. 24
1345
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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