Hello
I have the following problem and I'm looking for someone who can fix it.
1) I create a new custom module named 'Tdc2' by Module Designer
2) I wish to have a related module field there (Accounts module). to do this
I use Module Related Field in Blocks&Fields and place there a new record
named 'Organization'.
3) I create and install the new Module 'Tdc2' and all works properly.
4) Now I wish to have 'Tdc2' as related list module in 'Accounts'. I do this
using vtlib
include_once('vtlib/Vtiger/[login to view URL]');
$moduleInstance = Vtiger_Module::getInstance('Accounts');
$accountsModule = Vtiger_Module::getInstance('Tdc2');
$relationLabel = 'TDC';
$moduleInstance->setRelatedList(
$accountsModule, $relationLabel, Array('ADD','SELECT')
);
All rights. All works properly.
Now, if I create a new Tdc2 record from Accounts-Tdc2 related module I have
the new Tdc2 record related to the account and the same Tdc2record in Tdc2
Module - List view.
Where is the problem? *If I create a new Tdc2 record from 'Tdc2' module
directly, I select the Account name and save it but .. I see it in the tdc2
- List view module NOT IN account - tdc2 related module.*