diff --git a/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_postGeneration.xml b/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_postGeneration.xml index 139f72dbbe6ca1af02e87459ded001c03a245e7d..36cf916aa57ef27a83b93c3e021b40fd443491c2 100644 --- a/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_postGeneration.xml +++ b/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_postGeneration.xml @@ -54,7 +54,7 @@ the new Invoice.\n """\n from Products.ERP5Type.Message import translateString\n -\n +from DateTime import DateTime\n if related_simulation_movement_path_list is None:\n raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n \n @@ -65,6 +65,9 @@ if not invoice.Invoice_isAdvanced():\n if not invoice.getResource():\n invoice.setResource(invoice.getPriceCurrency())\n \n +if invoice.getStartDate() is None:\n + invoice.setStartDate(DateTime())\n +\n # initialize accounting_workflow to planned state\n plan_tag = \'%s_plan\' % invoice.getPath()\n if invoice.getSimulationState() == \'draft\':\n diff --git a/master/bt5/vifib_base/bt/revision b/master/bt5/vifib_base/bt/revision index 5ca234cb538117d188296311c2d9abaf364c847c..387c46fdec89e3cb2d1358c93270eeeeec85d13f 100644 --- a/master/bt5/vifib_base/bt/revision +++ b/master/bt5/vifib_base/bt/revision @@ -1 +1 @@ -345 \ No newline at end of file +346 \ No newline at end of file