Commit 4f250149 authored by Łukasz Nowak's avatar Łukasz Nowak

Use method supporting activate_kw.

setEffectiveDate might not support (just ignore) activate_kw parameter, and
edit is known to support it and pass through activity.
parent 852fcf14
...@@ -101,7 +101,7 @@ if not(add_kw_kw or modify_kw_kw or remove_id_list):\n ...@@ -101,7 +101,7 @@ if not(add_kw_kw or modify_kw_kw or remove_id_list):\n
\n \n
if previous_open_sale_order is not None:\n if previous_open_sale_order is not None:\n
open_sale_order = previous_open_sale_order.Base_createCloneDocument(batch_mode=1)\n open_sale_order = previous_open_sale_order.Base_createCloneDocument(batch_mode=1)\n
open_sale_order.setEffectiveDate(now, activate_kw=activate_kw)\n open_sale_order.edit(effective_date=now, activate_kw=activate_kw)\n
open_sale_order.order(activate_kw=activate_kw)\n open_sale_order.order(activate_kw=activate_kw)\n
open_sale_order.validate(activate_kw=activate_kw)\n open_sale_order.validate(activate_kw=activate_kw)\n
\n \n
......
731 732
\ No newline at end of file \ No newline at end of file
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