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
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
maj 25
|
990 | ||
|
2
lis 24
|
2198 | ||
|
0
maj 24
|
1580 | ||
|
4
lut 24
|
12355 | ||
sale / delivery
Rozwiązane
|
|
1
sty 24
|
1678 |