Commit 33d4a8bc authored by Romain Courteaud's avatar Romain Courteaud

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

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