Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
5922 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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>

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hello Prakash,

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

Imagine profil
Abandonează

updated answer

Cel mai bun răspuns

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.


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 23
3870
0
iun. 20
3088
3
mai 18
5051
0
aug. 20
2140
3
feb. 20
3718