fix signature
This commit is contained in:
parent
4d76fdcf53
commit
72f3898eaa
|
|
@ -48,6 +48,8 @@ class ForwardTransactionWizard(models.TransientModel):
|
|||
transaction = self.internal_transaction_id
|
||||
name = 'internal_transaction_id'
|
||||
transaction.last_response_date = fields.Datetime.now()
|
||||
|
||||
|
||||
elif self.incoming_transaction_id:
|
||||
transaction = self.incoming_transaction_id
|
||||
name = 'incoming_transaction_id'
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class Letters(models.Model):
|
|||
readonly=True,
|
||||
tracking=True
|
||||
)
|
||||
job_name = fields.Char(store=False)
|
||||
job_name = fields.Char(string="Job Name", store=True)
|
||||
@api.depends('transaction_type', 'name')
|
||||
def compute_img(self):
|
||||
employee_id = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
|
||||
|
|
@ -139,7 +139,7 @@ class Letters(models.Model):
|
|||
})
|
||||
# self.attachment_generated = True
|
||||
employee = self.env['hr.employee'].search([('user_id', '=', attach_id.create_uid.id)], limit=1)
|
||||
record.job_name = employee.job_title if employee and employee.job_title else ' '
|
||||
record.job_name = employee.job_id.name if employee and employee.job_id else ' '
|
||||
record.signed_user_id = attach_id.create_uid
|
||||
self.state = 'attached'
|
||||
return self.env['cm.attachment.rule'].sudo().create({
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
<span t-esc="o.signed_user_id.name"/>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px; text-align: left;margin-left:25px;font-size:18px;">
|
||||
<span t-esc="job_name"/>
|
||||
<span t-esc="o.job_name"/>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px; text-align: left;">
|
||||
|
|
|
|||
Loading…
Reference in New Issue