Update configuration.py
This commit is contained in:
parent
008eef4e7c
commit
9a98f1c04d
|
|
@ -91,7 +91,7 @@ class AttachmentRule(models.Model):
|
|||
|
||||
@api.constrains('file_save')
|
||||
def _check_attachment_size(self):
|
||||
max_size = 10 * 1024 * 1024 # 10 MB
|
||||
max_size = 4 * 1024 * 1024 # 4 MB
|
||||
for record in self:
|
||||
if record.file_save:
|
||||
file_size = len(base64.b64decode(record.file_save))
|
||||
|
|
|
|||
Loading…
Reference in New Issue