[Vtigercrm-developers] Relating Products with Activities

PlaymaN Tepes sshhocckk at gmail.com
Thu Jan 8 12:25:47 GMT 2015


In addition to this, no module is using their Module/Module/Module.php -
function get_activities. Only Products and Pricebooks are using this.

I think is old code?

2015-01-08 13:19 GMT+01:00 PlaymaN Tepes <sshhocckk at gmail.com>:

> 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/9fd1d4ad/attachment.html>


More information about the vtigercrm-developers mailing list