Skip to content

Commit

Permalink
FIX reply to app feedback encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Jan 10, 2020
1 parent 76fa60c commit cfaedcf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mobile_app_connector/models/mobile_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def mark_read(self):
@api.multi
def create_crm_claim(self):
def html_paragraph(text):
return "<p>{}</p>".format(text)
return u"<p>{}</p>".format(text)

def html_bold(text):
return "<p><b>{}</b></p>".format(text)
return u"<p><b>{}</b></p>".format(text)

self.ensure_one()

Expand All @@ -105,9 +105,10 @@ def html_bold(text):
'partner_id': self.partner_id.id,
'language': self.language
})
claim.message_post(body=body,
subject=_("Original request from %s %s ") %
(self.partner_id.firstname, self.partner_id.lastname))
claim.message_post(
body=body,
subject=_("Original request from %s %s ") %
(self.partner_id.firstname, self.partner_id.lastname))

self.state = 'replied'
self.crm_claim_id = claim
Expand Down

0 comments on commit cfaedcf

Please sign in to comment.