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.
50 lines
2.5 KiB
50 lines
2.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record model="ir.ui.view" id="product_template_image_suggestion_form_view">
|
|
<field name="name">product.template.product.website.form</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//notebook[last()]" position="inside">
|
|
<page string="Image Suggestion">
|
|
<group>
|
|
<group>
|
|
<group>
|
|
<field name="image_limit"/>
|
|
<field name="resize_image"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<field name="search_field" placeholder="Search Here.." nolabel="1"/>
|
|
<button class="oe_stat_button" name="search_images_button"
|
|
type="object" icon="fa-search">
|
|
</button>
|
|
</group>
|
|
</group>
|
|
|
|
<field name="search_image_ids" mode="kanban" context="{'default_name': name, 'default_product_tmpl_id': active_id}">
|
|
<kanban string="Suggested Images">
|
|
<field name="image" />
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div class="oe_kanban_global_click">
|
|
<a t-if="!read_only_mode" type="delete" class="fa fa-times pull-right"/>
|
|
<div class="o_kanban_image">
|
|
<img t-if="record.image.raw_value" t-att-src="'data:image/png;base64,'+record.image.raw_value"/>
|
|
</div>
|
|
<button name="action_set_image"
|
|
class="btn btn-primary oe_stat_button pull-right" string="Set Image" icon="Set Image" style="height:15px;width:25px"
|
|
type="object"/>
|
|
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|
|
|