Skip to Content
Menu
This question has been flagged
4956 Views

I have a simple method to return HTML text to a field.Html but get always unwanted character on each line:

# call:
self.agenda = self._meeting_type_agenda(self.meeting_type)
@api.one  # Getting the default text for agendas depending on Meeting-type
def _meeting_type_agenda(self, meeting_type):
if meeting_type == "daily": # Daily Scrum Agenda
    return str("""<h3 style="color:blue">What did I do yesterday that helped the Development Team meet the Sprint Goal?</h3>
    <ul>
     <li>-</li> <li>-</li>
    </ul><h3 style="color:blue">What will I do today to help the Development Team meet the Sprint Goal?</h3>
    <ul>
    <li>-</li>
    <li>-</li>
     </ul><h3 style="color:blue">Do I see any impediment that prevents me or the Development Team from meeting the Sprint Goal?</h3>
    """)
elif meeting_type == "planning": # Planning Agenda
    return """
     <h3 style="color:blue"><ul>What is the goal of this sprint?</ul></h3>
     <ul>
     <li>-<br></li>
     <li>-<br></li></ul><br/>
     <h3 style="color:blue"><ul>Which tasks does it include?</ul></h3>
     <ul>
     <li>-<br></li>
     <li>-<br></li>
     </ul><br/>
     <h3 style="color:blue"><ul>Which Def. of Done does it include?</ul></h3><br/>
     """


What is worn or missing?

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 22
1915
1
Aug 15
11861
0
Dec 24
59
1
Sep 24
2891
1
Jun 22
3470