Skip to content

Commit

Permalink
Do not force commit in computed fields
Browse files Browse the repository at this point in the history
Complement of 90cc245
  • Loading branch information
DocMarty84 committed Jul 11, 2020
1 parent ccf139b commit 1eb42bf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions models/oomusic_artist.py
Expand Up @@ -138,7 +138,6 @@ def _compute_fm_image(self):
# Save in cache
try:
artist.sudo().write({"fm_image_cache": resized_image})
self.env.cr.commit()
except OperationalError:
_logger.warning(
"Error when writing image cache for artist id: %s", artist.id, exc_info=True
Expand Down Expand Up @@ -194,7 +193,6 @@ def _compute_sp_image(self):
# Save in cache
try:
artist.sudo().write({"sp_image_cache": resized_image})
self.env.cr.commit()
except OperationalError:
_logger.warning(
"Error when writing image cache for artist id: %s", artist.id, exc_info=True
Expand Down

0 comments on commit 1eb42bf

Please sign in to comment.