You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified the src as follows:
FROM:
@api.one
def conv_html2text(self): # method that return a short text from description of user story
for d in self:
d.description_short = re.sub('<.>', ' ', d.description or '')
TO:
@api.one
@api.depends('description')
def conv_html2text(self): # method that return a short text from description of user story
for d in self:
#d.description_short = re.sub('<.>', ' ', d.description or '')
d.description_short = re.sub('<[a-zA-Z/][^>]*>', ' ', d.description or '')
The text was updated successfully, but these errors were encountered:
I modified the src as follows:
FROM:
@api.one
def conv_html2text(self): # method that return a short text from description of user story
for d in self:
d.description_short = re.sub('<.>', ' ', d.description or '')
TO:
@api.one
@api.depends('description')
def conv_html2text(self): # method that return a short text from description of user story
for d in self:
#d.description_short = re.sub('<.>', ' ', d.description or '')
d.description_short = re.sub('<[a-zA-Z/][^>]*>', ' ', d.description or '')
The text was updated successfully, but these errors were encountered: