You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.9 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Inherit Form View to Modify it -->
<record id="inherit_product_template_common" model="ir.ui.view">
<field name="name">inherit.product.template.common.faheem</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='image_1920']" position="replace">
<field name="image_1920" widget="d_and_d_image" class="oe_avatar"
options="{'image_size': '100x100', 'preview_image': 'image_128'}"/>
<!-- Add your fields or attributes here -->
</xpath>
<xpath expr="//field[@name='product_template_image_ids']" position="replace">
<field name="product_template_image_ids" nolabel="1" widget="d_and_d_images" options="{
'childImageField': 'image_1920',
'extraData': {
'previewImage': 'image_128',
}}"/>
<!-- Add your fields or attributes here -->
</xpath>
</field>
</record>
<!-- Inherit Kanban View of odoo 18 to add missing id and name fields in it -->
<!-- <record id="product_image_kanban_view_inherit" model="ir.ui.view">
<field name="name">product.view.image.kanban.inherit</field>
<field name="model">product.image</field>
<field name="inherit_id" ref="website_sale.product_image_view_kanban"/>
<field name="arch" type="xml">
<field name="video_url" position="after">
<field name="id" invisible="1"/>
<field name="name" invisible="1"/>
</field>
</field>
</record> -->
</data>
</odoo>