Commit 0f9e00d7 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Xiaowu Zhang

epr5_invoicing: hardcoded to not generate sale invoice transaction for some business process

parent ab7b06ee
......@@ -11,6 +11,14 @@ if parent.getPortalType() == 'Applied Rule':
parent.getParentValue().getParentValue().getSpecialiseValue().getPortalType() not in ['Order Root Simulation Rule']:
return False
#
# Some business process does not generate invoice.
# XXX isn't there a better way to configure this ???
if 'business_process_module/4/delivery_path' in movement.getCausalityList():
return False
source_section = movement.getSourceSection()
destination_section = movement.getDestinationSection()
if source_section == destination_section or source_section 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