Commit fb899455 authored by Nicolas Wavrant's avatar Nicolas Wavrant

[WIP] fixup! erp5_pdm: add supply_cell_interaction_workflow

isn't it bad to call the parent value, as it will be called X times, X bein the number of cells
parent 28829c5e
supply_cell = state_change['object']
supply_line = supply_cell.getParentValue()
if supply_cell.getParentValue().isBasePricePerSlice():
supply_cell.setSliceBasePrice(supply_cell.getBasePrice())
supply_line.updateCellSliceParameterList(base_id='path')
else:
supply_cell.setSliceBasePrice(None)
supply_line.updateCellSliceParameterList(base_id='path')
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