Merge pull request #14229 from FHenry/12.0_fix_ShowAdressThirdpartyOption_Extrafield_linkobject
fix extrafields linnktoObject Thirdpary option showAdress
This commit is contained in:
commit
ecfcbeef26
@ -725,6 +725,8 @@ class Societe extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function __construct($db)
|
public function __construct($db)
|
||||||
{
|
{
|
||||||
|
global $conf;
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
|
|
||||||
$this->client = 0;
|
$this->client = 0;
|
||||||
@ -735,6 +737,13 @@ class Societe extends CommonObject
|
|||||||
$this->forme_juridique_code = 0;
|
$this->forme_juridique_code = 0;
|
||||||
$this->tva_assuj = 1;
|
$this->tva_assuj = 1;
|
||||||
$this->status = 1;
|
$this->status = 1;
|
||||||
|
|
||||||
|
if ($conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST) {
|
||||||
|
$this->fields['address']['showoncombobox'] = $conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST;
|
||||||
|
$this->fields['zip']['showoncombobox'] = $conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST;
|
||||||
|
$this->fields['town']['showoncombobox'] = $conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST;
|
||||||
|
//$this->fields['fk_pays']['showoncombobox'] = $conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user