Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5792 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
říj 22
3031
1
srp 15
12959
0
úno 25
1206
0
led 25
1026
1
pro 24
1330