16.0 opp306 #8

Merged
b0g merged 3 commits from 16.0-OPP306 into 16.0 2025-08-27 14:59:05 +00:00
2 changed files with 16 additions and 2 deletions
Showing only changes of commit 6032220af1 - Show all commits

View File

@@ -34,3 +34,17 @@ class StudyQuestionnaireResponse(models.Model):
updated = fields.Datetime("Date mise à jour")
active = fields.Boolean("Actif", default=True)
@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
record.updated = record.write_date
@api.depends("create_date")
def _compute_created(self):
for record in self:
if not record.created:
record.created = record.create_date

View File

@@ -61,8 +61,8 @@
</group>
<group name="technique" string="Technique">
<group name="technique_left">
<field name="create_date" />
<field name="write_date" />
<field name="created" />
<field name="date" />
</group>
<group name="technique_right">
</group>