Odoo Help


Use Qweb to Inherit a Backend xml view

Cyrus Waithaka
on 4/19/15, 7:47 PM 2,109 views

I am trying to add a loop to the product.product_template_form_view form view. I am using the following piece of code to do so

<template id="website_multi_image_product_carousel" inherit_id="product.product_template_form_view" name="Website Product Image Carousel" customize_show="True">
 <xpath expr="//page[@string='information']" position="inside">
            <div class="container-fluid">
<div class="row-fluid">
<div class="slider slider-for">
<t t-foreach="product.images" t-as="i">
<div><span t-field="i.image" class="img-responsive" t-field-options="{"widget": "image", "class": "img-responsive"}"/></div>

Am doing this in order to loop through the list of images attached to the product and display them as sliders. Is there anyone who can point me in the right direction?


Anil R. Kesariya

--Anil R. Kesariya--
| 6 5 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya
On 4/20/15, 1:18 AM

Hello ,

Try this one,

Replace your  "   with &quot; inside the dictionary used for t-field-options,

t-field-options="{&quot;widget&quot;:&quot;image&quot;  &quot;class&quot; : &quot; img-responsive&quot; }"

Hope This will help



The dictionary seems okay (I have not used " inside the dictionary.)

Cyrus Waithaka
on 4/20/15, 1:46 AM

Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 9/14/15, 7:42 PM

What you are trying to do here is already done in a module that you could reuse at:


Take a look exactly in:


but it's recommended to use the whole module

Adnier Rosello
On 9/4/15, 9:58 AM

Hi, I'm trying to do exactly the example that you indicate but I can not show the inherited view, the view that is inherited is called somewhere ??, if you have the complete example, I appreciate that would share it, thanks

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 4/19/15, 7:47 PM
Seen: 2109 times
Last updated: 9/14/15, 10:08 PM