Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
137 Vistas

How can I automatically create a purchase order triggered by an e-mail sent to the incoming mail account configured in Odoo? E.g. An e-mail received from a quotation answer of a vendor.

Avatar
Descartar
Mejor respuesta

Thanks for sharing this! Using incoming emails to trigger purchase orders can really streamline the procurement process, especially for businesses handling frequent orders. One key thing to keep in mind is setting up proper email filters and validation rules, so only legitimate purchase requests create orders automatically. Also, integrating this with your vendor and product database can prevent errors like duplicate orders or wrong product entries. Has anyone tried combining this with automated approval workflows to add an extra layer of control before the PO is finalized?

Avatar
Descartar
Autor Mejor respuesta

Thank you @Cybrosis and @Lakhan Vachhani ! 

Avatar
Descartar
Mejor respuesta

Hi,


In Odoo, incoming e-mails can be used to trigger actions through the mail gateway, but creating purchase orders from vendor replies is not supported out of the box. You can configure an incoming mail server and set up an alias, but since purchase orders don’t natively support email aliases, customization is required.


The typical solution is to extend the purchase order model so that when an e-mail arrives at a designated alias (e.g., purchase@yourdomain.com), Odoo creates a draft purchase order automatically. The vendor can be identified using the sender’s e-mail address, and basic details like the subject or body of the message can be used as the PO reference.


For more advanced workflows, you could parse e-mail attachments or content to fill in quantities and prices. This can be done through a custom module with minimal code or by setting up Odoo Studio automated actions to generate a blank draft PO linked to the vendor for manual completion. In short, it’s possible, but it requires either customization or automation on top of Odoo’s standard mail handling.



Hope it helps

Avatar
Descartar
Mejor respuesta

Hello Luca Palo,


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
feb 25
1269
4
sept 25
636
1
mar 25
1071
1
sept 25
656
0
sept 25
264