Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
9119 Lượt xem

When a SO is converted to an Invoice the Salesperson get the email 

Dear "Salesperson",

You have been assigned to the invoice

View Invoice


How do I stop this?


Thanks



Ảnh đại diện
Huỷ bỏ

remove salesperson from follower ids

Câu trả lời hay nhất

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


 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

if you are a small company and you do not care about Sales Teams structure you can remove the persons from the Sales Team... this should stop the emails. I am trying this solution right now as I was always receiving these emails when somebody (from outside of the Sales Team) was creating an invoice...


I do not know if, on the opposite to this, the fact that the user that creates the invoice is not in the Sales Team leads to the creation of the email...

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello  Angela,

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

Hope this will help you.

Thanks!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
486
2
thg 9 25
3166
0
thg 10 25
654
5
thg 2 25
7911
0
thg 12 24
2097