Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5779 Переглядів

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?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
жовт. 22
3022
1
серп. 15
12948
0
лют. 25
1191
0
січ. 25
1017
Field service upgrade Вирішено
1
груд. 24
1319