Commit 69b33639 authored by Jérome Perrin's avatar Jérome Perrin

the order's trade condition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22825 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78747717
......@@ -105,7 +105,14 @@ else:\n
invoice.edit(\n
resource=price_currency,\n
price_currency=price_currency,)\n
\n
\n
\n
# copy trade condition:\n
if not context.getSpecialise():\n
related_order = related_packing_list.getDefaultCausalityValue()\n
if related_order is not None:\n
context.edit(specialise=related_order.getSpecialise())\n
\n
# copy title, if not updating a new delivery\n
if not invoice.getTitle():\n
invoice.setTitle(related_packing_list.getTitle())\n
......@@ -216,6 +223,12 @@ invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list
<key> <string>id</string> </key>
<value> <string>InvoiceTransaction_postGenerationActivity</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
......
115
\ No newline at end of file
117
\ 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