From 45e817e480ec01e9802976faf9a494b3ec0e763d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 1 Mar 2011 09:53:09 +0000 Subject: [PATCH] Workflow is empty by default but can be modified with module workflow --- ChangeLog | 2 ++ htdocs/includes/modules/modWorkflow.class.php | 7 ++++--- htdocs/install/upgrade2.php | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index df2e667f0b4..a1f2806daad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,8 @@ For users: - New: Standing orders module use bank account from banks module. - New: Ask password when creating a user from a contact. - New: task #10577: Use a numbering module for shipment and contract +- New: Add a first workflow module to create automatic action on some + events (create order on proposal closing). - Fix: Better Postgresql compatibility. For developers: diff --git a/htdocs/includes/modules/modWorkflow.class.php b/htdocs/includes/modules/modWorkflow.class.php index cc2b97b3927..5a82bf427e6 100644 --- a/htdocs/includes/modules/modWorkflow.class.php +++ b/htdocs/includes/modules/modWorkflow.class.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2010 Regis Houssin + * Copyright (C) 2010 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +26,7 @@ /** * \file htdocs/includes/modules/modWorkflow.class.php * \ingroup workflow - * \brief Fichier de description et activation du module Workflow + * \brief File to describe and activate module Workflow */ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php"); @@ -58,7 +59,7 @@ class modWorkflow extends DolibarrModules // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) $this->description = "Workflow management"; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version - $this->version = 'experimental'; + $this->version = 'dolibarr'; // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); // Where to store the module in setup page (0=common,1=interface,2=others,3=very specific) diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 52f390aa19f..a92f71d099b 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -3112,6 +3112,7 @@ function migrate_delete_old_files($db,$langs,$conf) DOL_DOCUMENT_ROOT.'/webcalendar/inc/triggers/interface_modWebcalendar_webcalsynchro.class.php', DOL_DOCUMENT_ROOT.'/includes/triggers/interface_modCommande_Ecotax.class.php', DOL_DOCUMENT_ROOT.'/includes/triggers/interface_modCommande_fraisport.class.php', + DOL_DOCUMENT_ROOT.'/includes/triggers/interface_modPropale_PropalWorkflow.class.php' ); foreach ($filetodeletearray as $filetodelete)