Commit 862096d2 authored by Romain Courteaud's avatar Romain Courteaud

User may not be allowed to edit the sale order.

Do not try to edit if not needed.
parent f0dc5d03
......@@ -55,7 +55,8 @@ order = state_change[\'object\']\n
portal = order.getPortalObject()\n
\n
vifib_trade_condition = \'sale_trade_condition_module/vifib_trade_condition\'\n
order.edit(specialise=vifib_trade_condition)\n
if not order.hasSpecialise():
order.edit(specialise=vifib_trade_condition)
\n
# ### STEP 1: does this order have a client-specific Trade Condition\n
# trade_condition = order.getSpecialiseValue(portal_type="Sale Trade Condition")\n
......
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