Skip to content

Commit

Permalink
[FIX] lighting: Cannot import images greater than 50mpx
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC013 authored and eantones committed Jul 15, 2024
1 parent 5514aed commit cf8a050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighting/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class LightingProduct(models.Model):
max_height=128,
store=True,
compute="_compute_images",
verify_resolution=False,
)
image_medium = fields.Image(
string="Medium-sized image",
Expand All @@ -85,6 +86,7 @@ class LightingProduct(models.Model):
max_height=512,
store=True,
compute="_compute_images",
verify_resolution=False,
)

@api.depends(
Expand Down
2 changes: 2 additions & 0 deletions lighting/models/product_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def _compute_datas_size(self):
max_height=128,
store=True,
compute="_compute_images",
verify_resolution=False,
)
image_medium = fields.Binary(
string="Medium-sized image",
Expand All @@ -120,6 +121,7 @@ def _compute_datas_size(self):
max_height=512,
store=True,
compute="_compute_images",
verify_resolution=False,
)

@api.depends("datas", "datas_url", "datas_location", "type_id", "type_id.is_image")
Expand Down

0 comments on commit cf8a050

Please sign in to comment.