Skip to content

In model project.scrum.us description_short always Null #14

Open
@lesdekock

Description

@lesdekock

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 '')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions