Clear the file content once the statement is imported

issue10555
review336571002
This commit is contained in:
Cédric Krier committed 2021-07-22 00:09:08 +02:00
1 parent 0fa7c8dc5f
commit 185e6ecedc
1 file changed
+1
+1
View File
@@ -1198,6 +1198,7 @@ class ImportStatement(Wizard):
for statement in statements:
statement.origin_file = fields.Binary.cast(self.start.file_)
Statement.save(statements)
self.start.file_ = None
data = {'res_id': list(map(int, statements))}
if len(statements) == 1: