I have a thumbnail gallery section on odoo website. That is configurable from backend. Now for each thumbnail I want to create a website page with its contents. How can I do that? I didn't find any reference to do this.
Regards.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have a thumbnail gallery section on odoo website. That is configurable from backend. Now for each thumbnail I want to create a website page with its contents. How can I do that? I didn't find any reference to do this.
Regards.
Tanzil,
Add link for each object of the thumbnail like this
<a t-att-href="'/foo/(slug(obj))">
<!--Print object-->
<t t-esc="obj.name"/>
</a>
In the controller
@http.route(['/foo/<model("Your.Model"):obj>'], type='http', auth='public', website=True)
def action_foo(self, obj, **post):
return request.website.render('Your_Module.Your_Template', {'object', obj})
Pint the value of that object in temlate
<template id="Your_Module.Your_Template">
..................
<t t-esc="object.name"/>
</template>
All the best !
Haha, I knew you will come to answer :) . Thanks for your support and help.
I will try it and let you know.
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
3
may 25
|
2593 | ||
|
0
dic 23
|
2341 | ||
|
1
jul 23
|
2365 | ||
|
0
jul 22
|
1872 | ||
Odoo? Why this new name?
Resuelto
|
|
3
sept 21
|
21801 |