Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2361 Tampilan

Hi,

I want to use an automated action which changes the state of my CRM opportunity automatically to a 'won' status when I validate the (sales)quotation which is related to the opportunity. can someone give me some advice?

Thanks in advance for your answer

Thijs


Avatar
Buang
Jawaban Terbai

Hi,

For changing the state of CRM opportunity automatically to a 'won' status when validating the (sales)quotation, First Inherit the sale.order model. Then super the function action_confirm. 

def action_confirm(self):
              res = super(SalesOrderInherit, self).action_confirm()
              if self.opportunity_id:
                      self.opportunity_id.action_set_won_rainbowman()
             return res

Regards

Avatar
Buang
Jawaban Terbai


There is opportunity_id field.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Sep 24
1796
0
Mei 24
27
1
Apr 24
5387
0
Mar 24
2017
0
Mar 24
2054