Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4301 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
maj 25
989
2
nov. 24
2194
0
maj 24
1569
4
feb. 24
12349
1
jan. 24
1678