I'm working on a form and the result will be the name showing in the URL.
http://domain.com/folder/{title}/show/
How do I replace characters Odoo-style!?
title = ""
if post.get('title') == "":
title = "Showcase"
else:
title = post.get('title').
****
# REPLACE FROM BAD/INVALID CHARS
title = title.encode('utf-8')
title = title.replace(" ", "_").
****
I've been struggling with this headache... What am I mIssing!?
I must have proper and Internet-friendly name for this current project, because the name och the post need to be