wip
This commit is contained in:
parent
bd4c9a64a8
commit
4054ebaf27
@ -67,7 +67,7 @@ class modZapier extends DolibarrModules
|
||||
// Name of image file used for this module.
|
||||
// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
|
||||
// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
|
||||
$this->picto = 'technic';
|
||||
$this->picto = 'zapier@zapier';
|
||||
// Define some features supported by module (triggers, login, substitutions, menus, css, etc...)
|
||||
$this->module_parts = array(
|
||||
// Set this to 1 if module has its own trigger directory (core/triggers)
|
||||
@ -109,7 +109,9 @@ class modZapier extends DolibarrModules
|
||||
// Example: this->dirs = array("/zapier/temp","/zapier/subdir");
|
||||
$this->dirs = array("/zapier/temp");
|
||||
// Config pages. Put here list of php page, stored into zapier/admin directory, to use to setup module.
|
||||
$this->config_page_url = array("setup.php@zapier");
|
||||
$this->config_page_url = array(
|
||||
// "setup.php@zapier"
|
||||
);
|
||||
// Dependencies
|
||||
// A condition to hide module
|
||||
$this->hidden = false;
|
||||
@ -119,7 +121,7 @@ class modZapier extends DolibarrModules
|
||||
$this->requiredby = array();
|
||||
// List of module class names as string this module is in conflict with. Example: array('modModuleToDisable1', ...)
|
||||
$this->conflictwith = array();
|
||||
$this->langfiles = array("zapier@zapier");
|
||||
$this->langfiles = array("zapier");
|
||||
// Minimum version of PHP required by module
|
||||
//$this->phpmin = array(5, 5);
|
||||
// Minimum version of Dolibarr required by module
|
||||
@ -148,7 +150,7 @@ class modZapier extends DolibarrModules
|
||||
'fr_FR:ParentCompany'=>'Maison mère ou revendeur'
|
||||
)*/
|
||||
if (! isset($conf->zapier) || ! isset($conf->zapier->enabled)) {
|
||||
$conf->zapier=new stdClass();
|
||||
$conf->zapier = new stdClass();
|
||||
$conf->zapier->enabled=0;
|
||||
}
|
||||
// Array to add new pages in new tabs
|
||||
|
||||
@ -14,9 +14,9 @@
|
||||
-- along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
|
||||
--ALTER TABLE llx_zapierfordolibarr_hook ADD INDEX idx_fieldobject (fieldobject);
|
||||
--ALTER TABLE llx_zapier_hook ADD INDEX idx_fieldobject (fieldobject);
|
||||
|
||||
--ALTER TABLE llx_zapierfordolibarr_hook ADD UNIQUE INDEX uk_zapierfordolibarr_hook_fieldxy(fieldx, fieldy);
|
||||
--ALTER TABLE llx_zapier_hook ADD UNIQUE INDEX uk_zapier_hook_fieldxy(fieldx, fieldy);
|
||||
|
||||
--ALTER TABLE llx_zapierfordolibarr_hook ADD CONSTRAINT llx_zapierfordolibarr_hook_fk_field FOREIGN KEY (fk_field) REFERENCES llx_zapierfordolibarr_myotherobject(rowid);
|
||||
--ALTER TABLE llx_zapier_hook ADD CONSTRAINT llx_zapier_hook_fk_field FOREIGN KEY (fk_field) REFERENCES llx_zapier_myotherobject(rowid);
|
||||
|
||||
@ -14,16 +14,16 @@
|
||||
-- along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
|
||||
CREATE TABLE llx_zapierfordolibarr_hook(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL,
|
||||
url varchar(255),
|
||||
event varchar(255),
|
||||
module varchar(128),
|
||||
action varchar(128),
|
||||
status integer,
|
||||
date_creation DATETIME NOT NULL,
|
||||
CREATE TABLE llx_zapier_hook(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL,
|
||||
url varchar(255),
|
||||
event varchar(255),
|
||||
module varchar(128),
|
||||
action varchar(128),
|
||||
status integer,
|
||||
date_creation DATETIME NOT NULL,
|
||||
fk_user integer NOT NULL,
|
||||
tms TIMESTAMP NOT NULL,
|
||||
import_key varchar(14)
|
||||
) ENGINE=innodb;
|
||||
tms TIMESTAMP NOT NULL,
|
||||
import_key varchar(14)
|
||||
) ENGINE=innodb;
|
||||
@ -13,11 +13,11 @@
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
create table llx_zapierfordolibarr_hook_extrafields
|
||||
create table llx_zapier_hook_extrafields
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
fk_object integer NOT NULL,
|
||||
import_key varchar(14) -- import key
|
||||
import_key varchar(14) -- import key
|
||||
) ENGINE=innodb;
|
||||
|
||||
|
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 683 B |
Binary file not shown.
|
Before Width: | Height: | Size: 360 B |
Loading…
Reference in New Issue
Block a user