Merge pull request #1976 from expsa/transaction_tasks

Transaction tasks
This commit is contained in:
enagahh 2024-12-25 12:19:33 +02:00 committed by GitHub
commit d9250d778d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ class Letters(models.Model):
if file_exists:
file_exists.unlink()
self.is_sign = True
else:
self.is_sign = False
ATTACHMENT_NAME = "Letter"
attach_id = self.env['ir.attachment'].create({
'name': ATTACHMENT_NAME + '.pdf',