Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
5936 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

Hello Prakash,

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

Avatar
Abbandona

updated answer

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 23
3870
0
giu 20
3089
3
mag 18
5052
0
ago 20
2142
3
feb 20
3719