Merge pull request #1081 from expsa/dev_odex25_transactions

update
This commit is contained in:
zainab2097 2024-09-11 14:11:17 +03:00 committed by GitHub
commit fc6b328ce0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 14 deletions

View File

@ -83,22 +83,10 @@ class Transaction(models.Model):
def compute_img(self):
employee_id = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
if employee_id:
entity = self.env['cm.entity'].search([('type','=','employee'),('employee_id', '=',employee_id.id)], limit=1)
for rec in self:
rec.signature = entity.image
rec.signature =self.env.user.digital_signature
# @api.onchange('tran_tag')
# def get_subject_type(self):
# # self.subject_type_id = False
# if self.tran_tag:
# domain = {'subject_type_id': [
# ('id', 'in', self.env['cm.subject.type'].search([('tran_tag', '=', self.tran_tage.id)
# ]).ids)]
# }
# else:
# domain = {'subject_type_id': [('id', 'in', self.env['cm.subject.type'].search([]).ids)]
# }
# return {'domain': domain}
def action_read(self):
for rec in self: