ajout tempo pour image
This commit is contained in:
parent
efe612789a
commit
de27e3200e
2 changed files with 33 additions and 0 deletions
20
temporary_change_image_size/__manifest__.py
Normal file
20
temporary_change_image_size/__manifest__.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
'name': 'Temporary Change for Image Full Size',
|
||||
'version': '15.0.0.0.0',
|
||||
'category': 'Extra Tools',
|
||||
'summary': 'Temporary Change for Image Full Size',
|
||||
'description': """
|
||||
This module is developed by Bemade to change the image size to full size temporarily
|
||||
""",
|
||||
'depends': [
|
||||
'product'
|
||||
],
|
||||
'data': [
|
||||
'views/product_template_views.xml'
|
||||
],
|
||||
'license': 'AGPL-3',
|
||||
'author': 'Bemade',
|
||||
'website': 'https://bemade.org/',
|
||||
'installable': True,
|
||||
'auto_install': False
|
||||
}
|
||||
13
temporary_change_image_size/views/product_template_views.xml
Normal file
13
temporary_change_image_size/views/product_template_views.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<record id="product_template_view_form_image" model="ir.ui.view">
|
||||
<field name="name">temporary_change_image_size.product_template_view_form_image</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="image_1920" position="replace">
|
||||
<field name="image_1920" widget="image" class="oe_avatar" options="{'preview_image': 'image_1920'}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Reference in a new issue