I want to change the stage at the pipeline, for example when i create a quotation, i see the field quotation_count, then when it changes it can be the action. How i can change the state Proposition?
model:
class customlead(models.Model):
_inherit='crm.lead'
@api.onchage('quotation_count')
def onchangecountq(self):
if self.quotation_count >0:
self.stageid=???