fixing outgoing transaction
This commit is contained in:
parent
b682057a58
commit
289a9e2acf
|
|
@ -122,7 +122,8 @@ class Transaction(models.Model):
|
||||||
def default_employee_id(self):
|
def default_employee_id(self):
|
||||||
user = self.env.user
|
user = self.env.user
|
||||||
em = self.env['cm.entity'].search([('user_id', '=', user.id)], limit=1)
|
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):
|
def compute_receive_id(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue