Re: [Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-28 Par sujet Régis Houssin
on peut partager la base des tiers entre les entités donc il faudrait un champ entité dans llx_subscriber afin de les différencier un abonné lié à un contact dans une entité ne sera pas forcément abonné dans une autre entité Le 28/08/12 13:10, Marc-Henri Pamiseux a écrit : > Merci Régis, > > C'est

Re: [Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-28 Par sujet Marc-Henri Pamiseux
Merci Régis, C'est ce que j'avais compris oui. J'ai pu évoquer les tables llx_societe et llx_socpeople pour illustrer mon raisonnement, mais je l'ai mal fait, ce qui a provoqué cette incompréhension. Je vais prendre pour exemple la définition d'une table d'abonnés. Ce qui caractérise un abonné c'

Re: [Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-28 Par sujet Régis Houssin
désolé je le fait en français : tu as besoin d'un champ entité sur toutes les tables des objets principaux (le lien avec la table llx_societe ou llx_socpeople ne compte pas) mais par contre tu n'as pas besoin de l'ajouter sur la ou les tables de détails de cette objet si cette table est liée avec

Re: [Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-28 Par sujet Marc-Henri Pamiseux
Hi Régis, You mean that if i create a table that is linked with the llx_societe table or with the llx_socpeople table, then it isn't necessary to add the entity column in the created table. But if the table is not created in connection with a table containing the column entity, then it is necessa

Re: [Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-28 Par sujet Régis Houssin
you can add "entity" field for multicompany module in object table but not in detail table (already linked with foreign key) Le 28/08/12 09:31, Laurent Destailleur (eldy) a écrit : > I have update the wiki documentation to add an answer for this with > minimal recommandation > http://wiki.dolibar

Re: [Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-28 Par sujet Laurent Destailleur (eldy)
I have update the wiki documentation to add an answer for this with minimal recommandation http://wiki.dolibarr.org/index.php/Language_and_development_rules#SQL_rules Le 28/08/2012 01:47, Marc-Henri Pamiseux a écrit : Hi, I'm creating a module for managing publications I'm creating a module f

[Dolibarr-dev] pattern for adding tables in dolibarr's module

2012-08-27 Par sujet Marc-Henri Pamiseux
Hi, I'm creating a module for managing publications I'm creating a module for managing publications and i don't know if there is a prerequisite with the tables format. For example, I need to create a basic table settings. Should I still add the columns entity, fk_user_creat, datec, fk_user_modif,