diff --git a/odex25_transactions/exp_transaction_documents/models/transaction.py b/odex25_transactions/exp_transaction_documents/models/transaction.py index a8d1e40e7..54320ed10 100644 --- a/odex25_transactions/exp_transaction_documents/models/transaction.py +++ b/odex25_transactions/exp_transaction_documents/models/transaction.py @@ -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: