<div dir="ltr"><div><div><div><div><div>hi, <br><br></div>I created a custom module with the vtlib tool console.php, then i added a uitype10 field and created a relation with Accounts using this code: <br><br><?php<br>$Vtiger_Utils_Log = true;<br>include_once('vtlib/Vtiger/Module.php');<br>include_once('vtlib/Vtiger/Menu.php');<br>$account = Vtiger_Module::getInstance('Accounts');<br>$custom = Vtiger_Module::getInstance('Test');<br>$block = Vtiger_Block::getInstance('LBL_Test_Informations', $custom);<br><br>$field = new Vtiger_Field();<br>$field->name = 'account_id';<br>$field->label = 'Account';<br>$field->table = 'vtiger_test';<br>$field->column = 'account_id';<br>$field->columntype = 'VARCHAR(255)';<br>$field->uitype = 10;<br>$field->typeofdata = 'V~O';<br>$block->addField($field);<br>$field->setRelatedModules(Array('Accounts'));<br>?><br><br></div>and<br><br><?php<br>$Vtiger_Utils_Log = true;<br><br>include_once('vtlib/Vtiger/Module.php');<br>$moduleInstance = Vtiger_Module::getInstance('Accounts');<br>$testModule = Vtiger_Module::getInstance('Test');<br>$relationLabel = 'Test';<br>$moduleInstance->setRelatedList(<br>$testModule, $relationLabel, Array('ADD'), get_dependents_list<br>);<br>?> <br><br></div>Everything works fine except that I cannot edit in anyway the columns showed in the related list. So: when I go in Organizations and click on the relation label (called 'test' in the code above), the records are showed but if I go in my costume module and check 'summary view' to have another field shown as well in the related list, then the related list in Organizations is empty.<br><br></div>Is there a way I can solve this problem? Now I can see only 'Name' and 'Assigned to' as columns in the related list and these are the infos that I need the least<br><br></div>Thanks<br><br></div>