transaction approve
This commit is contained in:
parent
f496ccdc03
commit
74c22c4930
|
|
@ -222,9 +222,12 @@ class InternalTransaction(models.Model):
|
|||
employee = self.current_employee()
|
||||
|
||||
to_id = self.to_ids.id
|
||||
if self.to_ids.type == 'employee':
|
||||
self.forward_user_id = self.to_ids.user_id.id
|
||||
|
||||
if self.to_ids.type != 'employee':
|
||||
to_id = self.to_ids.secretary_id.id
|
||||
self.forward_user_id = self.to_ids.manager_id.user_id
|
||||
self.forward_user_id = self.to_ids.manager_id.user_id
|
||||
self.trace_ids.create({
|
||||
'action': 'sent',
|
||||
'to_id': to_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue