← Back to team overview

openerp-expert-framework team mailing list archive

How to replace the image in kanban view

 

Hi buddies,

I'm trying to replace the image in kanban view in product module which
is a new function in OpenERP 6.1.
But there seems to be no effect after I add the following sentence into the xml.
<xpath expr="/kanban/field[@name='product_image']" position="replace">
<field name="xxx_product_image"/>
</xpath>
Is there anything wrong with the xpath expression here?

Here attached the whole xml snippet.
=================================
<record model="ir.ui.view" id="view_product_kanban">
<field name="name">xxx.product.detail.kanban.inherit</field>
<field name="model">product.product</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="product.product_kanban_view"/>
<field name="arch" type="xml">
<xpath expr="/kanban/field[@name='product_image']" position="replace">
<field name="xxx_product_image"/>
</xpath>
</field>
</record>
=================================
Anyone came across the same issue before?

Regards
Sage