|
@@ -180,31 +180,10 @@ class modZapier extends DolibarrModules
|
|
|
// 'stock' to add a tab in stock view
|
|
|
// 'thirdparty' to add a tab in third party view
|
|
|
// 'user' to add a tab in user view
|
|
|
+
|
|
|
// Dictionaries
|
|
|
$this->dictionaries = array();
|
|
|
- /* Example:
|
|
|
- $this->dictionaries=array(
|
|
|
- 'langs'=>'mylangfile@zapier',
|
|
|
- // List of tables we want to see into dictonnary editor
|
|
|
- 'tabname'=>array(MAIN_DB_PREFIX."table1",MAIN_DB_PREFIX."table2",MAIN_DB_PREFIX."table3"),
|
|
|
- // Label of tables
|
|
|
- 'tablib'=>array("Table1","Table2","Table3"),
|
|
|
- // Request to select fields
|
|
|
- 'tabsql'=>array('SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.MAIN_DB_PREFIX.'table1 as f','SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.MAIN_DB_PREFIX.'table2 as f','SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.MAIN_DB_PREFIX.'table3 as f'),
|
|
|
- // Sort order
|
|
|
- 'tabsqlsort'=>array("label ASC","label ASC","label ASC"),
|
|
|
- // List of fields (result of select to show dictionary)
|
|
|
- 'tabfield'=>array("code,label","code,label","code,label"),
|
|
|
- // List of fields (list of fields to edit a record)
|
|
|
- 'tabfieldvalue'=>array("code,label","code,label","code,label"),
|
|
|
- // List of fields (list of fields for insert)
|
|
|
- 'tabfieldinsert'=>array("code,label","code,label","code,label"),
|
|
|
- // Name of columns with primary key (try to always name it 'rowid')
|
|
|
- 'tabrowid'=>array("rowid","rowid","rowid"),
|
|
|
- // Condition to show each dictionary
|
|
|
- 'tabcond'=>array($conf->zapier->enabled,$conf->zapier->enabled,$conf->zapier->enabled)
|
|
|
- );
|
|
|
- */
|
|
|
+
|
|
|
// Boxes/Widgets
|
|
|
// Add here list of php file(s) stored in zapier/core/boxes that contains class to show a widget.
|
|
|
$this->boxes = array(
|