Hi everyone, I need to limit the files size that users upload in Odoo. I thought in a automatic action to prevent that. It worked in the model ir.attachments view, but when I upload a file using the chatter in any model, doesn't work.
This is my automatic action:
for x in record:
if x.file_size > 2000:
raise Warning('The selected file exceed the maximum file size of 2MB')
I'd appreciate your help.