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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
mag 25
|
990 | ||
|
2
nov 24
|
2199 | ||
|
0
mag 24
|
1586 | ||
|
4
feb 24
|
12358 | ||
sale / delivery
Risolto
|
|
1
gen 24
|
1678 |