Sur la table des actions, ajout du champ lang afin de pouvoir y mettre les difrentes dclinaisons par langue
et ajout du champ type afin d'identifier les actions qui ne doivent pas etre supprime du dictionnaire de donnes leur id tant utilis en dur dans le code (Exemple: rendez-vous, envoi mail). Ce champ est mis dans ce cas a la valeur 'system'.
This commit is contained in:
parent
de42d8cab0
commit
40af984c5e
@ -185,15 +185,15 @@ insert into llx_c_chargesociales (id,libelle,deductible) values ( 3, 'GSG/CRDS N
|
||||
-- Types action
|
||||
--
|
||||
delete from llx_c_actioncomm;
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 0, '-');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 1, 'Appel Téléphonique');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 2, 'Envoi Fax');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 3, 'Envoi Proposition');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 4, 'Envoi Email');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 5, 'Prendre rendez-vous');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 9, 'Envoi Facture');
|
||||
insert into llx_c_actioncomm (id,libelle) values (10, 'Relance effectuée');
|
||||
insert into llx_c_actioncomm (id,libelle) values (11, 'Clôture');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 0, 'system', 'all', '-');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 1, 'system', 'fr_FR', 'Appel Téléphonique');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 2, 'system', 'fr_FR', 'Envoi Fax');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 3, 'system', 'fr_FR', 'Envoi Proposition');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 4, 'system', 'fr_FR', 'Envoi Email');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 5, 'system', 'fr_FR', 'Prendre rendez-vous');
|
||||
insert into llx_c_actioncomm (id,libelle) values ( 9, 'system', 'fr_FR', 'Envoi Facture');
|
||||
insert into llx_c_actioncomm (id,libelle) values (10, 'system', 'fr_FR', 'Relance effectuée');
|
||||
insert into llx_c_actioncomm (id,libelle) values (11, 'system', 'fr_FR', 'Clôture');
|
||||
|
||||
--
|
||||
-- Types action
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
--
|
||||
--
|
||||
--
|
||||
-- Attention à l'ordre des requetes
|
||||
-- Attention à l ordre des requetes
|
||||
-- ce fichier doit être chargé sur une version 1.1.0
|
||||
-- sans AUCUNE erreur ni warning
|
||||
--
|
||||
@ -74,6 +74,10 @@ alter table c_pays rename llx_c_pays ;
|
||||
alter table c_stcomm rename llx_c_stcomm ;
|
||||
alter table c_typent rename llx_c_typent ;
|
||||
|
||||
alter table llx_c_actioncomm add type varchar(10) not null default 'system' after id;
|
||||
alter table llx_c_actioncomm add lang varchar(8) not null default 'all' after type;
|
||||
update llx_c_actioncomm set lang='fr_FR' where id > 0;
|
||||
|
||||
alter table llx_c_paiement add code varchar(6) after id;
|
||||
|
||||
delete from llx_c_paiement;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
@ -23,6 +24,8 @@
|
||||
create table llx_c_actioncomm
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
libelle varchar(30),
|
||||
type varchar(10) default 'system' not null,
|
||||
lang varchar(8) default 'all' not null,
|
||||
libelle varchar(30) not null,
|
||||
todo tinyint
|
||||
)type=innodb;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user