emails subpanel not showing in opportunity record view

Hi All,

I want to display email subpanel on opportunity record view/detail view , but its not showing for opportunity, but shows for Leads module.

Subpanel not available in Studio -> opportunity -> subpanels.

I have enabled Emails module for Navigation and subpanel.

What might be the root cause for the above, please suggest.

Subpanel file available in "custom/modules/Opportunities/metadata/subpanels/Email_subpanel_opportunities.php".

Kindest Regards,

Shreya

Parents Reply Children
  • HI

    Here's what a checked in my Sugacrm v12 devel environment

    - Try to find a type = link entry for "emails" in cache/modules/Opportunities/Opportunityvardefs.php

        array (
          'name' => 'emails',
          'type' => 'link',
          'relationship' => 'emails_opportunities_rel',
          'source' => 'non-db',
          'vname' => 'LBL_EMAILS',
        )

    - Create a file based in this entry in custom/Extension/modules/Opportunities/Ext/clients/base/layouts/subpanels/opportunity_emails.php

    <?php
    $viewdefs['Opportunities']['base']['layout']['subpanels']['components'][] = array (
        'label' => 'LBL_YOUNAMEIT',
        'context' =>
        array (
            'link' => 'emails',
        ),
        'layout' => 'subpanel',
    );

    BUT it didn't work

    then a followed the relationship emais_opportunities_rel and didn't found any occurrence.
    Shouldn't it be 'opportunity_emails'?

    detailed as

        array (
          'lhs_module' => 'Opportunities',
          'lhs_table' => 'opportunities',
          'lhs_key' => 'id',
          'rhs_module' => 'Emails',
          'rhs_table' => 'emails',
          'rhs_key' => 'parent_id',
          'relationship_type' => 'one-to-many',
          'relationship_role_column' => 'parent_type',
          'relationship_role_column_value' => 'Opportunities',
        )

    I'll do some research and come back later.

    Juane