[Vtigercrm-developers] Comments in Quotes Module

Alan Lord alanslists at gmail.com
Mon Jul 7 13:32:25 GMT 2014


On 07/07/14 14:14, Michael Lockwood wrote:
> We are wanting to be able to add Comments to Quotes in vTiger just like
> other modules (Opportunities, Contacts, etc).  Is there a way to do this
> in vTiger 6?

Same as with 5.4.0

Use the vtlib API:

> /*** Comments Block ***/
> // Link to modComments Module
> $modComments = Vtiger_Module::getInstance('ModComments');
> $field_relatedTo = Vtiger_Field::getInstance('related_to', $modComments);
> $field_relatedTo->setRelatedModules(array('Quotes'));
> $detailviewblock = ModComments::addWidgetTo('Quotes');



HTH

Al



More information about the vtigercrm-developers mailing list