<div dir="ltr">Hi vTiger Developer List,<br><br>Recently I tried to relate Products with Activities (like Accounts-Activities).<div><br></div><div>The problem is modules Products and Pricebooks have their own getQuery function </div><div>Products: <a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Products/models/Relation.php">http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Products/models/Relation.php</a> Pricebooks: <a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/PriceBooks/models/Relation.php">http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/PriceBooks/models/Relation.php</a></div><div><br></div><div>and Accounts is working through Vtiger Relation getQuery function: <a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Vtiger/models/Relation.php">http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Vtiger/models/Relation.php</a><br><br>The problem in general terms is Pricebooks/Products getQuery functions is doing this: $query = $parentModuleModel->$functionName directly and Vtiger getQuery function call a function that have an exception in <a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Accounts/models/Module.php">http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Accounts/models/Module.php</a> , function <span style="color:rgb(0,0,0);white-space:pre-wrap">getRelationQuery.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">So, I applied a patch, if someone is interested contact me.

Anyway I would like to know the approach to achieve this.

Thanks.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div></div>