user3129344
user3129344

Reputation: 61

How to disable automated sales order email notification to customer?

When I confirm a sale order an email is sent to my customer :

" You have been invited to follow SO014. Access your messages and personal documents through our Customer Portal".

I want to disable that action. When I access to basic sale workflow, there is no action server defined when a sale order is confirmed.

Upvotes: 0

Views: 2882

Answers (2)

MichelWorld
MichelWorld

Reputation: 41

you could try to inherit the sale.order function action_confirm and remove all linked partners (and users) from the message_follower_ids.

@api.multi
    def action_confirm(self):

        return_value = super(sale_order, self.with_context(mail_create_nosubscribe=True)).action_confirm()

        for follower in self['message_follower_ids']:
            follower.unlink()

        return return_value

Upvotes: 0

dhana
dhana

Reputation: 6525

Try to find the server actions Setting -> Actions -> Server Actions

Then find Sale Orders and remove the action there.

Upvotes: 1

Related Questions