I have 1 custom class which have minimum 30000 record which have images are stored.
Now, I want to resize all the images which is stored and also creating new record with image.
First image field is like as below
variants_image_medium = fields.Binary('Product Image', store=True, attachment=True)
Now, I converted image field as shown below
variants_image_medium = fields.Binary('Product Image', inverse='_compute_images', store=True, attachment=True, readonly=False)
for rec in self:
image = tools.image_resize_image_small(rec.variants_image_medium)
rec.variants_image_medium = image
It gives me error,
RuntimeError: maximum recursion depth exceeded
How to Solve that error ?
Thanks in Advance,