| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-attribute |
| GIT | |
| GIT | https://github.com/OCA/product-attribute.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-attribute/tree/10.0/product_default_image |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), LasLabs |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), LasLabs |
| COMMITTERS | |
| COMMITTERS | OCA Transbot, Dave Lasley, oca-travis, Weblate, OCA-git-bot, tbaden |
| WEBSITE | |
| WEBSITE | https://laslabs.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:19:57 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - stock - product - base - decimal_precision - base_setup - web_kanban - web - bus - web_tour - report - procurement - barcodes - web_planner |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_category_form_view |
product.category.form | product.category | xpath | Inherits product.product_category_form_view |
product_template_form_view |
product.template.common.form | product.template | xpath | Inherits product.product_template_form_view |
view_stock_config_settings |
stock settings | stock.config.settings | xpath | Inherits stock.view_stock_config_settings |
No new fields.
Public methods (0)No public methods.
image
Binary
attachment=True
help='This field holds the image used for the category, limited to 1024x1024px. Also used as the default image for products of this category.'
string='Image'
image_medium
Binary
attachment=True
help='Medium-sized image of the category. It is automatically resized as a 128x128px image, with aspect ratio preserved, only when the image exceeds one of those sizes. Use this field in form views or some kanban views.'
string='Medium-Sized Image'
image_small
Binary
attachment=True
help='Small-sized image of the category. It is automatically resized as a 64x64px image, with aspect ratio preserved. Use this field anywhere a small image is required.'
string='Small-Sized Image'
create(self, vals)
write(self, vals)
auto_change_image
Boolean
default=True
help='Allow/disallow automatic changes to product image. Uncheck to stop being changed to a default image.'
string='Auto Change Image'
image_type
Selection
default=NONE
readonly=True
required=True
selection=[(NONE, 'No Image'), (GLOBAL, 'Global'), (CATEGORY, 'Category'), (CUSTOM, 'Custom')]
string='Image Type'
product_image_target
Selection
related='company_id.product_image_target'
required=True
string='Default Product Image'
apply_default_image(self)
default_get(self, vals)
write(self, vals)
product_image
Binary
default=<expr>
help='Use as the global image for all product default images. Limited to 1024x1024.'
string='Global Product Image'
product_image_target
Selection
default='none'
help='Determines the type of default images to use. Changing this field will set all empty product images to the target you specify. Products with a default image from the previous target are changed to your new target as well.\n\nNo Default Image: Deletes images.\n\nGlobal: Set to Global Product Image.\n\nCategory: Set products to their category image.\n\nGlobal and Category: Set products to their category image if the category has an image. Otherwise set it to the Global Product Image'
required=True
selection=[(NONE, 'No Default Image'), (GLOBAL, 'Global Product Image'), (CATEGORY, "Category's Image"), (GLOBAL_CATEGORY, 'Global and Category')]
string='Default Product Image'
write(self, vals)
product_image
Binary
help='Use as the global image for all product default images. Limited to 1024x1024.'
related='company_id.product_image'
required=True
string='Global Product Image'
product_image_target
Selection
help='Determines the type of default images to use. Changing this field will set all empty product images to the target you specify. Products with a default image from the previous target are changed to your new target as well.\n\nNo Default Image: Deletes images.\n\nGlobal: Set to Global Product Image.\n\nCategory: Set products to their category image.\n\nGlobal and Category: Set products to their category image if the category has an image. Otherwise set it to the Global Product Image'
related='company_id.product_image_target'
required=True
string='Default Product Image'
No public methods.