diff --git a/base_conditional_image/models/abstract_image.py b/base_conditional_image/models/abstract_image.py index 0aa43c578..30963958a 100644 --- a/base_conditional_image/models/abstract_image.py +++ b/base_conditional_image/models/abstract_image.py @@ -7,17 +7,18 @@ from odoo.tools.safe_eval import safe_eval class AbstractConditionalImage(models.AbstractModel): _name = 'abstract.conditional.image' + _description = 'Abstract image' image = fields.Binary( compute='_compute_image', string="Image", store=False, readonly=True ) image_medium = fields.Binary( - compute='_compute_image', string="Image", + compute='_compute_image', string="Medium-sized image", store=False, readonly=True ) image_small = fields.Binary( - compute='_compute_image', string="Image", + compute='_compute_image', string="Small-sized image", store=False, readonly=True ) diff --git a/base_conditional_image/models/image.py b/base_conditional_image/models/image.py index 6c32e0e9b..39d0a131c 100644 --- a/base_conditional_image/models/image.py +++ b/base_conditional_image/models/image.py @@ -7,6 +7,7 @@ from odoo.exceptions import ValidationError class Image(models.Model): _name = 'image' + _description = 'Image' name = fields.Char('Name', required=True) model_name = fields.Char('Model Name', required=True)