Commit 029f4eb8 authored by Kevin Deldycke's avatar Kevin Deldycke

seb: make purchase invoice transaction working

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4cd1d114
...@@ -75,14 +75,15 @@ packing_list.updateAppliedRule(\'default_invoice_rule\')\n ...@@ -75,14 +75,15 @@ packing_list.updateAppliedRule(\'default_invoice_rule\')\n
\n \n
\n \n
\n \n
packing_list_portal_type = packing_list.getPortalType()\n if packing_list.getPortalType()==\'Purchase Invoice Transaction\':\n
if packing_list_portal_type == \'Sale Packing List\':\n builder_list = (\'purchase_invoice_builder\',\'purchase_invoice_transaction_builder\') \n
delivery_builder = packing_list.portal_deliveries.sale_packing_list_builder\n elif packing_list.getPortalType()==\'Sale Invoice Transaction\':\n
elif packing_list_portal_type == \'Purchase Packing List\':\n builder_list = (\'sale_invoice_builder\',\'sale_invoice_transaction_builder\')\n
delivery_builder = packing_list.portal_deliveries.purchase_packing_list_builder\n
\n \n
packing_list_relative_url = packing_list.getRelativeUrl()\n packing_list_relative_url = packing_list.getRelativeUrl()\n
delivery_builder.updateFromSimulation(packing_list_relative_url)\n for builder in builder_list:\n
delivery_builder = packing_list.portal_deliveries[builder]\n
delivery_builder.updateFromSimulation(packing_list_relative_url)\n
\n \n
# Automatic workflow\n # Automatic workflow\n
packing_list.activate().updateCausalityState()\n packing_list.activate().updateCausalityState()\n
...@@ -135,9 +136,12 @@ packing_list.activate().updateCausalityState()\n ...@@ -135,9 +136,12 @@ packing_list.activate().updateCausalityState()\n
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>packing_list</string> <string>packing_list</string>
<string>packing_list_portal_type</string> <string>builder_list</string>
<string>delivery_builder</string>
<string>packing_list_relative_url</string> <string>packing_list_relative_url</string>
<string>_getiter_</string>
<string>builder</string>
<string>_getitem_</string>
<string>delivery_builder</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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