Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
5931 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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>

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hello Prakash,

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

Awatar
Odrzuć

updated answer

Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 23
3870
0
cze 20
3088
3
maj 18
5052
0
sie 20
2142
3
lut 20
3719