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:
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
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
How To Calculate Age From Birthday
Resuelto
|
7
sept 21
|
29726 | ||
|
3
sept 22
|
32169 | |||
|
2
dic 24
|
3480 | |||
|
1
feb 22
|
4869 | |||
|
1
feb 22
|
7987 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.