Skip to content

Commit e374a66

Browse files
author
Antoni Marroig Campomar
committed
f
1 parent 82f3b85 commit e374a66

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dms/models/dms_file.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ class DMSFile(models.Model):
117117
compute="_compute_save_type",
118118
string="Current Save Type",
119119
prefetch=False,
120+
readonly=False,
121+
store=True,
120122
)
121123

122124
migration = fields.Char(
@@ -263,6 +265,7 @@ def action_migrate(self, should_logging=True):
263265
{
264266
"content": dms_file.with_context(**{}).content,
265267
"storage_id": dms_file.directory_id.storage_id.id,
268+
"save_type": dms_file.directory_id.storage_id.save_type,
266269
}
267270
)
268271

0 commit comments

Comments
 (0)