Commit 5bad0dd8 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! erp5_corporate_identity: allow easy customization of variables used in Letter's template

parent 92b8f53c
......@@ -76,7 +76,11 @@ else:
# cut corner to retrieve path to css files
letter_version = "001"
letter_reference = letter.getReference()
extra_template_kw = letter.Letter_getExtraTemplateVariableDict()
extra_template_variable_method = letter.getTypeBasedMethod('getExtraTemplateVariableDict')
extra_template_kw = {}
if extra_template_variable_method:
extra_template_kw = extra_template_variable_method()
# overrides for tests
if override_batch_mode:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment