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

Hello everyone,

    i am using odoo10 community edition, i want to send email to customer while validating stock picking transfer. can anyone knows about how to send email?


Thanks in advance

Avatar
Descartar
Mejor respuesta

Check the below module available in version 11, you can directly use in odoo 10 or little customization if required.

https://apps.odoo.com/apps/modules/11.0/stock_picking_send_by_mail/

In the above module email template created and stock.picking form using "Send by Email" button sending mail.

See the below file stock_picking_send_by_mail/views/stock_picking_view.xml

If button not visible check picking_type_code value based on condition visible or remove attrs="{'invisible': [('picking_type_code', '!=', 'outgoing')]}"

Based on your requirement while validating stock picking transfer need to customize, find particular method to override call mail template and send mail method call pass stock picking object id.

<?xml version="1.0" encoding="UTF-8"?>
<odoo>

    <record id="view_picking_form" model="ir.ui.view">
        <field name="name">stock.picking.form</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form"/>
        <field name="arch" type="xml">
            <field name="state" position="before">
                <button name="action_picking_send" string="Send by Email" type="object" attrs="{'invisible': [('picking_type_code', '!=', 'outgoing')]}" groups="base.group_user"/>
            </field>
        </field>
    </record>

</odoo>

Avatar
Descartar
Autor Mejor respuesta

Hello Prakash,

i seen that module but mail is not send by that module.

Avatar
Descartar

updated answer

Mejor respuesta

Hi:

I don't have access to a Odoo 10 environment at the moment, the following is available in Odoo 11 and most probably was in Odoo 10 too.

You can define an Automated Action on the Transfer (stock.picking) model with a Trigger Condition of On Update, and Action To Do of Send Email like so. This will trigger an email to be sent as soon as the transfer moves to the Done status.


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 23
3870
0
jun 20
3088
3
may 18
5052
0
ago 20
2142
3
feb 20
3719