|
From: | Florian HENRY |
Subject: | Re: [Dolibarr-dev] Adding data to llx_product |
Date: | Mon, 26 Oct 2015 20:00:45 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Hello, IMHO create a new table with fk_product column. Core dolibarr tables should be modified by modules, it is the base of core application. If core tables modification is needed, it should be submitted into core dev, for fixing bugs, or adding new core feature but not by externals modules. As well, in the module you should deal with triggers PRODUCT_DELETE to delete line into this table in the same times product are deleted from dolibarr (can also be done by foreign key ON DELETE contraint but may not work on all database engine) to avoid orphan lines. Another option is also to play with extrafields (llx_product_extrafields) feature by declaring them by code into module initialisation. It can depends how complex will be the functionnal rules on this fields. Regards Florian Henry +33 6 03 76 48 07 address@hidden http://www.open-concept.pro Twitter : @_Open_Concept_ Google+ : https://www.google.com/+Open-conceptPro Le 26/10/2015 17:34, Sasa Ostrouska a
écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |