fixing state

This commit is contained in:
ahmed-nouri051 2025-06-17 14:55:06 +02:00
parent 4651eaf034
commit b682057a58
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,