transaction approve

This commit is contained in:
blackbelts 2025-07-06 18:40:25 +03:00
parent f496ccdc03
commit 74c22c4930
1 changed files with 4 additions and 1 deletions

View File

@ -222,6 +222,9 @@ class InternalTransaction(models.Model):
employee = self.current_employee() employee = self.current_employee()
to_id = self.to_ids.id 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': if self.to_ids.type != 'employee':
to_id = self.to_ids.secretary_id.id 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