Remove subpanel buttons (create and select btn)

Hello everyone,

I want to know how can i remove the create and select btn in subpanel :
My need :
I want to remove the "Create and Select " button from the P_Asw_Contract subpanel located on the P_Asw_Rayon module's detailview

I have 2 Custom Modules : Departement (P_Asw_Rayon), and Contracts (P_Asw_Contract)
I had followed step by step the instructions of the official article of crm sugar , in this link  http://support.sugarcrm.com/Knowledge_Base/Developers/Customization/Modifying_Subpanel_Action_Buttons/index.html but without getting the expected result

So i created : hideBtnSubpanels.php file in <root>\<PRJ_NAME>\custom\Extension\modules\P_Asw_Rayon\Ext\Layoutdefs

subpanelMenu.PNG

Parents Reply
  • Hi all

    We are using SugarCRM CD 6.5. Based in your experience, would it be possible to remove the "select" and "create" buttons from all subpanels, depending on a condition?

    I mean we want to create a READ ONLY "role", which will allow read access to the records of the modules, but being able to relate two records, it is not really a "read only" role, as they are able to "modify" some how the data of the CRM.

    Would it be possible to include an "if" in these files to see if the "$current_user" matches the "read only" condition or not and if so disable the buttons?

    Cheers

Children
No Data