Merge pull request #3489 from expsa/doamin-filter-incoming-transactions

fixing outgoing transaction
This commit is contained in:
ahmed-nouri051 2025-06-17 15:42:33 +02:00 committed by GitHub
commit af1d7f85ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ class Transaction(models.Model):
def default_employee_id(self):
user = self.env.user
em = self.env['cm.entity'].search([('user_id', '=', user.id)], limit=1)
return len(em) and em or self.env['cm.entity']
#return len(em) and em or self.env['cm.entity']
return em
def compute_receive_id(self):
for rec in self: