[IMP] website: improve list of template for html editor when we edit a report
Since commit 0167acb
, the template used in translate_doc are added to the list
of template when we are editing a report with the html editor.
It's nice, but we don't have all the dependicies from this one.
Now we recompute the list of template, to have all the related templates:
the external_layer* and all templates which overload this report.
This commit is contained in:
parent
01c983919c
commit
b6a528fbf0
|
@ -28,6 +28,7 @@ class Website(Website):
|
|||
@route()
|
||||
def customize_template_get(self, xml_id, full=False):
|
||||
res = super(Website, self).customize_template_get(xml_id, full=full)
|
||||
if full and request.session.get('report_view_ids'):
|
||||
res += request.session['report_view_ids']
|
||||
if full:
|
||||
for r in request.session.get('report_view_ids', []):
|
||||
res += super(Website, self).customize_template_get(r.get('xml_id'), full=full)
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue