[Vtigercrm-developers] Create Sales Order from Potential?

Alan Lord (News) alanslists at gmail.com
Wed Apr 6 03:32:55 PDT 2011

On 05/04/11 15:35, Alan Lord (News) wrote:
> One of our customers wants to add an action button to the Potential
> Detail View that will create a Sales Order, and copy across pertinent
> information.
> I'm wondering if anyone has done something similar before so I don't
> have to start from scratch?

Partially answering myself, I discovered that the
"Add Sales Order" button in the Sales Order Block below a Detail View of 
an Enquiry does pretty much what I need.

But it is a call to some Javascript.

<input type="submit" value="Add Sales Order" name="button" 
class="crmbutton small create" title="Add Sales Order">

So could I use repeat this call in the vtlib special Link type feature?

$moduleInstance = Vtiger_Module::getInstance('Potential');
'Add Sales Order',
'call to javascript function'



The Open Learning Centre

More information about the vtigercrm-developers mailing list