Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8436 Представления

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.

Аватар
Отменить
Лучший ответ

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


 

Аватар
Отменить
Лучший ответ

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
Аватар
Отменить