This commit is contained in:
gsinghpal
2026-03-14 12:04:20 -04:00
parent fc3c966484
commit e9cf75ee48
75 changed files with 6991 additions and 873 deletions

View File

@@ -722,7 +722,10 @@ class AssessmentPortal(CustomerPortal):
# Post message to chatter with photos
sale_order.message_post(
body=f"<p><strong>Assessment Photos</strong><br/>Photos from assessment {assessment.reference} by {request.env.user.name}</p>",
body=Markup(
'<p><strong>Assessment Photos</strong><br/>'
'Photos from assessment %s by %s</p>'
) % (assessment.reference, request.env.user.name),
message_type='comment',
subtype_xmlid='mail.mt_comment',
attachment_ids=attachment_ids,