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 ...@@ -105,7 +105,14 @@ else:\n
invoice.edit(\n invoice.edit(\n
resource=price_currency,\n resource=price_currency,\n
price_currency=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 # copy title, if not updating a new delivery\n
if not invoice.getTitle():\n if not invoice.getTitle():\n
invoice.setTitle(related_packing_list.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 ...@@ -216,6 +223,12 @@ invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>InvoiceTransaction_postGenerationActivity</string> </value> <value> <string>InvoiceTransaction_postGenerationActivity</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
115 117
\ 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