I have a simple problem, but it can be serious for me, I created custom fields and added them all to the custom\modules\Leads\metadata\detailviewdefs.php (detailview) layout of the Leads module, but the problem is that I have to make a change package installer. I managed to create custom fields and copy them in the manifest custom\Extension\modules\Leads\Ext\Vardefs . Now I donβt know how to apply detailviewdefs changes through the manifest (add a new field bar to the detailed view). The fact is that the existing detailview layout should not be changed, but only add a new panel to it.
A possible solution in my mind is that I should add the code to the $ layout_defs $layout_defs["Leads"]["DetailView"] ['panels']['panel_name'] and put it in custom\Extension\modules\Leads\Ext\Layoutdefs\ and copy the Layoutdefs file through the manifest. I tried this but didn't seem to work. If you want, buy a smart solution.
Addition: Even if I export module changes from Studio ->export Customizations and import into another instance using module builder . It overrides all previous user files (settings) in the new instance (this is not a limitation in SugarCRM), but my requirement is to add only changes to the more detailed view of the instance.
source share