Skip to content

Commit

Permalink
[FIX] dms: Remove log warning in dms.file
Browse files Browse the repository at this point in the history
UserWarning: dms.file: inconsistent 'store' for computed fields, accessing migration
may recompute and update require_migration. Use distinct compute methods for stored
and non-stored fields
  • Loading branch information
victoralmau committed Aug 20, 2024
1 parent 4710827 commit 515372f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dms/models/dms_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class DMSFile(models.Model):
readonly=True,
prefetch=False,
compute_sudo=True,
store=True,
)
require_migration = fields.Boolean(
compute="_compute_migration", store=True, compute_sudo=True
Expand Down

0 comments on commit 515372f

Please sign in to comment.