Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2353 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď


There is opportunity_id field.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 24
1779
0
kvě 24
27
1
dub 24
5354
0
bře 24
2011
0
bře 24
2043