From f39139f4dbbf50de84940720910bcc672bb353ca Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Thu, 16 Oct 2025 08:27:05 +0000 Subject: [PATCH] [FIX] attachment_image_resize: fix not setting resize_done to true when create new attachment --- attachment_image_resize/models/ir_attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachment_image_resize/models/ir_attachment.py b/attachment_image_resize/models/ir_attachment.py index a1ca4e3..5bc0a02 100644 --- a/attachment_image_resize/models/ir_attachment.py +++ b/attachment_image_resize/models/ir_attachment.py @@ -19,7 +19,7 @@ def _postprocess_contents(self, values): self = self.with_context( resize_target_model=values.get("res_model") or self.res_model ) - self.resize_done = True + values["resize_done"] = True return super()._postprocess_contents(values) @api.model