Subpanel label not generating for Contracts relationship to custom module

Perhaps there’s a post somewhere that already addresses this but I haven’t been able to find it.

I created a relationship between a custom module (‘sctrl_site’) and Contracts. It’s a one-to-many relationship so that I could assign many Contracts to an ‘sctrl_site’ (labeled Site). I’m running SuiteCRM 7.12.6.

I installed the package I created through the Module Builder and everything seems fine EXCEPT the subpanel on a Site detail view does not have a resolved label. The label in the subpanel appears as ‘LBL_SCTRL_SITE_AOS_CONTRACTS_FROM_AOS_CONTRACTS_TITLE’.

I checked Studio under Site to see if I could manually change the label but that label is not in the list of Labels to edit. Note that labels for other relationships ARE shown there, just not this relationship.

I compared the modulebuilder files between AOS_Contract and Opportunities (because I have a one-to-many relationship between both of those built-in modules and the sctrl_site module). I found that the relationships/language php file doesn’t include the label I need.

custom/modulebuilder/builds/supervisory_controller/SugarModules/relationships/language/sctrl_site.php:

<?php
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_SCTRL_SITE_SCTRL_ZONE_FROM_SCTRL_ZONE_TITLE'] = 'Zone';
$mod_strings['LBL_SCTRL_SITE_OPPORTUNITIES_FROM_OPPORTUNITIES_TITLE'] = 'Opportunities';
$mod_strings['LBL_SCTRL_SITE_SCTRL_TC_BRANCH_FROM_SCTRL_TC_BRANCH_TITLE'] = 'TC Branch';
$mod_strings['LBL_SCTRL_SITE_SCTRL_CONTROLLER_FROM_SCTRL_CONTROLLER_TITLE'] = 'Controller';
$mod_strings['LBL_SCTRL_SITE_SCTRL_JOBS_FROM_SCTRL_JOBS_TITLE'] = 'Jobs';
$mod_strings['LBL_SCTRL_SITE_CASES_FROM_CASES_TITLE'] = 'Cases';
$mod_strings['LBL_SCTRL_SITE_ACCOUNTS_FROM_ACCOUNTS_TITLE'] = 'Site Contact';
$mod_strings['LBL_SCTRL_SITE_ACCOUNTS_1_FROM_ACCOUNTS_TITLE'] = 'Service Company';
$mod_strings['LBL_SCTRL_UNIT_SCTRL_SITE_FROM_SCTRL_UNIT_TITLE'] = 'Unit';

Other than that label definition not being generated in that file, there doesn’t seem to be anything else different (but perhaps I’m missing something).

Could there be an issue with Contracts being named ‘AOS_Contracts’ under the hood? Does anyone have any pointers for where I should look for a solution?

Thanks!

I don’t know the answer, but in case you get stuck with this, I suggest simply adding the label yourself in the module, forget about Studio.

Do you recall which file I can manually add the label definition where it won’t get cleared out on a Repair?

Thanks!

It’s documented here