Hello,
I need to know that how to call function through URL?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I need to know that how to call function through URL?
You can call a funtion from url using http.route
for example call a function from url www.domain.com/web/my/home
@http.route(['/my/home'], type='http', auth="public", website=True)
def your_function(self, **kw):
# your code
or if you want to call a function defined inside a model use this inside your function
request.env['your.model'].function_name()
Thank You Mohammed
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
How To Calculate Age From Birthday
Ratkaistu
|
|
7
syysk. 21
|
28277 | |
|
3
syysk. 22
|
30644 | ||
|
2
jouluk. 24
|
2103 | ||
|
1
helmik. 22
|
3923 | ||
|
1
helmik. 22
|
6801 |