Commit 51bd6859 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! erp5_pdm: support calculation of base_price applying to all items of a same slice

parent 9a1f36dd
supply_line = state_change['object']
# Currently state_change.kwargs['workflow_method_args'] contains
# a list of string, so this script is called every time.
# As it is not the intent, let's return early if nothing changes
if [float(x) for x in sorted(state_change.kwargs['workflow_method_args'][0], key=lambda x: float(x))] == sorted(supply_line.getQuantityStepList()):
return
if supply_line.isBasePricePerSlice():
price_parameter = 'slice_base_price'
else:
......
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