Commit 1bc2768d authored by Romain Courteaud's avatar Romain Courteaud

erp5_accounting: do not crash if user can not access the source/destination section

parent 95fc894e
section_value = context.getDestinationSectionValue()
section_value = context.getDestinationSectionValue(checked_permission='Access contents information')
if section_value is None or \
section_value.getProperty('price_currency', None) is None:
......
section_value = context.getSourceSectionValue()
section_value = context.getSourceSectionValue(checked_permission='Access contents information')
if section_value is None or \
section_value.getProperty('price_currency', None) is None:
......
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