Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4312 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 25
992
2
nov. 24
2200
0
mai 24
1592
4
feb. 24
12360
1
ian. 24
1680