/vtigercrm/modules/Accounts/DetailView.php 92行添加
if(isPermitted("SalesOrder","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("CONVERTSALESORDER","permitted");
/vtigercrm/Smarty/templates/DetailView.tpl 460行
{if $MODULE eq 'Leads' || $MODULE eq 'Contacts' || $MODULE eq 'Accounts'} 下面添加
{if $CONVERTSALESORDER eq 'permitted'}
<tr>
<td align="left" style="padding-left:10px;">
<a href="index.php?return_module={$MODULE}&return_action=DetailView&return_id={$ID}&module=SalesOrder&action=EditView&account_id={$ID}" class="webMnu"><img src="
{'actionGenerateSalesOrder.gif'|@vtiger_imageurl:$THEME}" hspace="2" align="absmiddle" border="0"/></a>
<a href="index.php?return_module={$MODULE}&return_action=DetailView&return_id={$ID}&module=SalesOrder&action=EditView&account_id={$ID}" class="webMnu">{$APP.LBL_CREATE_BUTTON_LABEL} {$APP.SalesOrder}</a>
</td>
</tr>
{/if}