Commit 85ab5e6c authored by Romain Courteaud's avatar Romain Courteaud Committed by Kazuhiko Shiozaki

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

parent e3c74084
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