[DIRTY-HACK] for migration ONLY, should not appear in GIT HISTORY

This commit is contained in:
Boris Gallet
2025-08-27 16:59:57 +02:00
parent 6032220af1
commit d7218bb593
4 changed files with 15 additions and 9 deletions

View File

@@ -95,6 +95,9 @@ class StudyStudy(models.Model):
@api.depends("write_date")
def _compute_updated(self):
for record in self:
## XXXb0g : the following two lines are to be removed when all records will have been updated during migration
if record.updated:
continue
_logger.info(f"Record ID: {record.id}, write_date: {record.write_date}")
record.updated = record.write_date