Odoo Help

Welcome!

This community 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.

0

how to display images in a treeview

By
meriem HAKKANI
on 6/1/16, 4:17 AM 291 views

 <record id="view_product_image_tree" model="ir.ui.view">

        <field name="name">product.images.tree</field>

        <field name="model">product.images</field>

        <field name="arch" type="xml">

        <tree string="Product Images">

                <field name="name"/>

                <field name="image" widget='image'/>

                <field name="comments"/>

        </tree>

    </field>

</record>

2

Jusab Sida (jsi)

--Jusab Sida (jsi)--
Tiny ERP Pvt Ltd
http://www.odoo.com
874
| 2 1 5
Gandhinagar, India
--Jusab Sida (jsi)--


Jusab Sida (jsi)
On 6/1/16, 7:20 AM

 There is a module web_tree_image by OCA,

after installing this module, you need to add widget="image", like

<field name="image" widget="image"/>


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/1/16, 4:17 AM
Seen: 291 times
Last updated: 6/10/16, 5:19 AM