[IMP] base: do not fill description_html with description for applications
For applications we don't want to have an html description based on the text field description. This description is just a small summary and does not add much value to the Apps view. If no description_html is given let us just use the newly-introduced discover feature instead of filling ugly content in html description. This commit is related to task 47179 and PR #22689.
This commit is contained in:
committed by
Thibault Delavallée
parent
4ed7690d43
commit
f8ce302529
@@ -189,7 +189,7 @@ class Module(models.Model):
|
||||
'output_encoding': 'unicode',
|
||||
'xml_declaration': False,
|
||||
}
|
||||
output = publish_string(source=module.description or '', settings_overrides=overrides, writer=MyWriter())
|
||||
output = publish_string(source=module.description if not module.application and module.description else '', settings_overrides=overrides, writer=MyWriter())
|
||||
module.description_html = tools.html_sanitize(output)
|
||||
|
||||
@api.depends('name')
|
||||
|
||||
Reference in New Issue
Block a user