跳至内容
菜单
此问题已终结
5757 查看

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?

形象
丢弃
相关帖文 回复 查看 活动
1
10月 22
3005
1
8月 15
12928
0
2月 25
1169
0
1月 25
1006
1
12月 24
1298