Commit fd85c81f authored by Rafael Monnerat's avatar Rafael Monnerat

Order's Delivery Mode is copied on the invoice and The Trade condition from...

Order's Delivery Mode is copied on the invoice and The Trade condition from the order should be copied on the invoice.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20938 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67383abc
......@@ -76,7 +76,13 @@ if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
sale_invoice = context\n
\n
packing_list = sale_invoice.getCausalityValue()\n
if packing_list is not None:\n
sale_invoice.setDeliveryMode(packing_list.getDeliveryMode())\n
order = packing_list.getCausalityValue()\n
if order is not None:\n
sale_invoice.setSpecialise(order.getSpecialise())\n
\n
sale_invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).InvoiceTransaction_postGenerationActivity(related_simulation_movement_path_list=related_simulation_movement_path_list, **kw)\n
</string> </value>
......@@ -133,8 +139,10 @@ sale_invoice.activate(after_path_and_method_id=(related_simulation_movement_path
<string>RuntimeError</string>
<string>context</string>
<string>sale_invoice</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>packing_list</string>
<string>order</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......
94
\ No newline at end of file
95
\ 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