Browse Source

[FIX][12.0] base_conditional_image: Fix descriptions and strings

12.0-mig-module_prototyper_last
Enric Tobella 5 years ago
parent
commit
dcd4f271bd
  1. 5
      base_conditional_image/models/abstract_image.py
  2. 1
      base_conditional_image/models/image.py

5
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
)

1
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)

Loading…
Cancel
Save