Hello ,
I have try this in suitecrm/custom/modules/AOS_Invoices/metadata/subpanels/Contact_subpanel_contact_aos_invoices.php
),
'billing_account' =>
array (
'width' => '10%',
'vname' => 'LBL_BILLING_ACCOUNT',
'default' => true,
'widget_class' => 'SubPanelDetailViewLink'
),
'billing_account_logo_cie_c' =>
array (
'type' => 'image',
'default' => true,
'studio' => 'visible',
'width' => '10%',
'vname' => 'LBL_BILLING_ACCOUNT_LOGO_CIE',
'label' => 'Logo',
),
and created a /custom/include/SugarFields/Fields/Image/ListView.tpl with this :
<img id="{$col|lower}" pgr="was here" src="index.php?entryPoint=download&id={sugar_fetch object=$parentFieldArray key='ID'}_{$col|lower}&type=Accounts" style="max-width: 200px;" height="50">
and add custom/modules/Accounts/metadata/subpanels/default.php
with
subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Accounts'),
),
'where' => '',
'list_fields' => array(
'name' =>
array(
'vname' => 'LBL_LIST_ACCOUNT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '45%',
'default' => true,
),
'LOGO_CIE_C' =>
array (
'type' => 'image',
'default' => true,
'studio' => 'visible',
'width' => '10%',
'label' => 'LBL_LOGO_CIE',
),
'billing_address_city' =>
array(
'vname' => 'LBL_LIST_CITY',
'width' => '20%',
'default' => true,
),
'billing_address_country' =>
array(
'type' => 'varchar',
'vname' => 'LBL_BILLING_ADDRESS_COUNTRY',
'width' => '7%',
'default' => true,
),
'phone_office' =>
array(
'vname' => 'LBL_LIST_PHONE',
'width' => '20%',
'default' => true,
),
'edit_button' =>
array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'width' => '4%',
'default' => true,
),
'remove_button' =>
array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButtonAccount',
'width' => '4%',
'default' => true,
),
)
);
But nothing… Have an Idea
Quentin