Commit 9148f412 authored by Jérome Perrin's avatar Jérome Perrin

in non bpm version of delivery rule, copy description and title on simulation

movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28901 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 337264b5
......@@ -135,7 +135,10 @@ class DeliveryRule(Rule):
price_currency=deliv_mvt.getPriceCurrency(),
base_contribution_list=deliv_mvt.getBaseContributionList(),
base_application_list=deliv_mvt.getBaseApplicationList(),
description=deliv_mvt.getDescription(),
)
if deliv_mvt.hasTitle():
new_sim_mvt.setTitle(deliv_mvt.getTitle())
elif sim_mvt in existing_movement_list:
if sim_mvt not in immutable_movement_list:
# modification allowed
......@@ -167,7 +170,10 @@ class DeliveryRule(Rule):
price_currency=deliv_mvt.getPriceCurrency(),
base_contribution_list=deliv_mvt.getBaseContributionList(),
base_application_list=deliv_mvt.getBaseApplicationList(),
description=deliv_mvt.getDescription(),
force_update=1)
if deliv_mvt.hasTitle():
sim_mvt.setTitle(deliv_mvt.getTitle())
else:
# modification disallowed, must compensate
pass
......
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