[Vtigercrm-developers] Relating Products with Activities

PlaymaN Tepes sshhocckk at gmail.com
Thu Jan 8 12:19:53 GMT 2015


Hi vTiger Developer List,

Recently I tried to relate Products with Activities (like
Accounts-Activities).

The problem is modules Products and Pricebooks have their own getQuery
function
Products:
http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Products/models/Relation.php
Pricebooks:
http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/PriceBooks/models/Relation.php

and Accounts is working through Vtiger Relation getQuery function:
http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Vtiger/models/Relation.php

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
http://trac.vtiger.com/svn/vtiger/vtigercrm/trunk/modules/Accounts/models/Module.php
, function getRelationQuery.

So, I applied a patch, if someone is interested contact me. Anyway I would
like to know the approach to achieve this. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150108/07df7951/attachment.html>


More information about the vtigercrm-developers mailing list