Skip to Content
Menu
This question has been flagged
2 Replies
8344 Views

Hi there,


Everytime I create a new order/invoice an email is sent to the salesperson saying something similar to "You have been assgined to order XXX". Also, when I associate the order/invoice to a different salesperson, the email gets trigered also.


Is there any way to disable this emails in Odoo? I don't want to disable all emails to the users, just these type, since they are too many.


Thanks.

Avatar
Discard
Best Answer

In Developer Mode, create an Automation from Settings --> Technical --> Automation --> Automation Rules


 

Avatar
Discard
Best Answer

Hi,

Try the below code to inherit the sale.order function action_confirm and select the users.


          @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



Thanks
Avatar
Discard