Merge pull request #5732 from expsa/khazraji_transaction

fix-try2
This commit is contained in:
mohammed-alkhazrji 2025-12-15 12:36:20 +03:00 committed by GitHub
commit 4b708c1f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -126,6 +126,8 @@ class Transaction(models.Model):
return len(em) and em or self.env['cm.entity']
# return em
def compute_receive_id(self):
for rec in self:
if rec.to_ids:
@ -134,7 +136,8 @@ class Transaction(models.Model):
if rec.to_ids[0].type == 'unit':
employee_id = rec.to_ids[0].secretary_id.id
rec.receive_id = employee_id
else:
rec.receive_id = False
def compute_receive_manger_id(self):
for rec in self:
rec.receive_manger_id = False