Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4323 Vues

Hi,
I want to create sale.order when i create calendar.event. Is it possible? If yes how can you get by default the customer?

Thanks.

Avatar
Ignorer
Meilleure réponse

Hi,

You can override the create method of the model calender.event and can create the sale.order.


class CalenderEVent(models.Model):
_inherit = 'calender.event'

@api.model
def create(self, vals):
res = super(CalenderEVent, self).create(vals)
# code here to create sale order
return res


Thanks

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mai 25
992
2
nov. 24
2204
0
mai 24
1609
4
févr. 24
12366
1
janv. 24
1681