diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml index 14362acf89ba3f767655740cfdbe79221bc1ad27..dc1e0d56d79640ebb7349a12d4f102896091422e 100644 --- a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml +++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml @@ -105,19 +105,7 @@ if not invoice.hasTitle() and related_packing_list.hasTitle():\n \n # initialize accounting_workflow to confirmed state\n if invoice.getSimulationState() == \'draft\':\n - try :\n - context.getPortalObject().portal_workflow.doActionFor(\n - invoice, \'confirm_action\',\n - comment=translateString(\'Initialised by Delivery Builder.\'),\n - skip_period_validation=1)\n - except WorkflowException, e:\n - # The user cannot pass the transition, it\'s OK\n - pass\n -\n - if invoice.getSimulationState() == \'draft\':\n - # call the workflow method, if the user cannot perform this operation.\n - invoice.confirm(comment=translateString(\'Initialised by Delivery Builder.\'),)\n -\n + invoice.confirm(comment=translateString(\'Initialised by Delivery Builder.\'),)\n \n # First set the invoice in the building state on the causality workflow\n invoice.startBuilding()\n @@ -184,7 +172,6 @@ invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list <string>order_trade_model_line_copy_id_list</string> <string>order_trade_model_line</string> <string>clipboard</string> - <string>e</string> </tuple> </value> </item> diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision index 5f1a9f39c27866e19c2665f899cec7d843660ad4..f9c94c8318066ba562fd1ce1e14753071396ea54 100644 --- a/bt5/erp5_invoicing/bt/revision +++ b/bt5/erp5_invoicing/bt/revision @@ -1 +1 @@ -324 \ No newline at end of file +325 \ No newline at end of file