';
- print '| ';
+ print ' | ';
print '';
print '';
@@ -1086,7 +1089,7 @@ if ($id > 0 || !empty($ref)) {
var fk_default_warehouse = $("option:selected", this).val();
$("select[name^=entrepot_]").val(fk_default_warehouse).change();
});
-
+
jQuery("#autoreset").click(function() {';
$i = 0;
while ($i < $nbproduct) {
diff --git a/htdocs/includes/OAuth/OAuth2/Service/Google.php b/htdocs/includes/OAuth/OAuth2/Service/Google.php
index 0d49609dccb..5ab0f8a474b 100644
--- a/htdocs/includes/OAuth/OAuth2/Service/Google.php
+++ b/htdocs/includes/OAuth/OAuth2/Service/Google.php
@@ -116,6 +116,11 @@ class Google extends AbstractService
// Android Publisher
const SCOPE_ANDROID_PUBLISHER = 'https://www.googleapis.com/auth/androidpublisher';
+
+ // Google Gsuite
+ const SCOPE_ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user";
+ const SCOPE_ADMIN_DIRECTORY_CUSTOMER = "https://www.googleapis.com/auth/admin.directory.customer";
+
protected $accessType = 'online';
public function __construct(
@@ -150,7 +155,7 @@ class Google extends AbstractService
}
$this->approvalPrompt = $prompt;
}
-
+
/**
* {@inheritdoc}
*/
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 16805424e61..04d29a7e0e2 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -840,6 +840,7 @@ ListOfTemplates=List of templates
Gender=Gender
Genderman=Man
Genderwoman=Woman
+Genderother=Other
ViewList=List view
ViewGantt=Gantt view
ViewKanban=Kanban view
diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index df3f21a453a..535d39a34c6 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -44,6 +44,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/canvas.class.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php';
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/genericobject.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/product.lib.php';
@@ -290,7 +291,8 @@ if (empty($reshook))
$object->note_private = dol_htmlcleanlastbr(GETPOST('note_private', 'none'));
$object->note = $object->note_private; // deprecated
$object->customcode = GETPOST('customcode', 'alphanohtml');
- $object->country_id = GETPOST('country_id', 'int');
+ $object->country_id = GETPOST('country_id', 'int');
+ $object->state_id = GETPOST('state_id', 'int');
$object->duration_value = $duration_value;
$object->duration_unit = $duration_unit;
$object->fk_default_warehouse = GETPOST('fk_default_warehouse');
@@ -395,7 +397,8 @@ if (empty($reshook))
$object->note = $object->note_private;
}
$object->customcode = GETPOST('customcode', 'alpha');
- $object->country_id = GETPOST('country_id', 'int');
+ $object->country_id = GETPOST('country_id', 'int');
+ $object->state_id = GETPOST('state_id', 'int');
$object->status = GETPOST('statut', 'int');
$object->status_buy = GETPOST('statut_buy', 'int');
$object->status_batch = GETPOST('status_batch', 'aZ09');
@@ -866,6 +869,7 @@ llxHeader('', $title, $helpurl);
$form = new Form($db);
$formfile = new FormFile($db);
$formproduct = new FormProduct($db);
+$formcompany = new FormCompany($db);
if (!empty($conf->accounting->enabled)) $formaccounting = new FormAccounting($db);
// Load object modBarCodeProduct
@@ -908,6 +912,15 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
//WYSIWYG Editor
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
+ print ''."\n";
+
// Load object modCodeProduct
$module = (!empty($conf->global->PRODUCT_CODEPRODUCT_ADDON) ? $conf->global->PRODUCT_CODEPRODUCT_ADDON : 'mod_codeproduct_leopard');
if (substr($module, 0, 16) == 'mod_codeproduct_' && substr($module, -3) == 'php')
@@ -922,7 +935,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
dol_set_focus('input[name="ref"]');
- print ' |