Merge pull request #3486 from expsa/doamin-filter-incoming-transactions

fixing state
This commit is contained in:
ahmed-nouri051 2025-06-17 14:59:36 +02:00 committed by GitHub
commit 671929c3b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ class InternalTransaction(models.Model):
if record.to_user_have_leave:
record.forward_user_id = record.receive_id.user_id.id
record.state='send'
record.send_message(template=template)
subj = _('Message Has been sent!')
msg = _(u'{} ← {}').format(record.employee_id.name, record.to_ids.name)
@ -231,7 +231,7 @@ class InternalTransaction(models.Model):
'procedure_id': self.procedure_id.id or False,
'internal_transaction_id': self.id
})
self.state = 'send'
subj = _('Message Has been approved!')
msg = _(u'{} ← {}').format(self.preparation_id.manager_id.name, self.to_ids.name)
msg = u'{}<br /><b>{}</b> {}.<br />{}'.format(msg,