fix-try2
This commit is contained in:
parent
ffdf8a181b
commit
d5b018cea6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue