I've linked successfully ticket customers from an external database(postgres), and now I'm able to select the customer when creating a ticket.
However, I don't know how to show on the right place the info of the customer when viewing the ticket created. Could anybody show me how to link the customer info to be shown in a ticket on the right?

This is the code of my Config.pm related to linking of an external database
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::DB',
Params => {
DSN => 'DBI:Pg:database=wifib;host=127.0.0.1',
# DSN => 'DBI:Pg:database=wifib;host=127.0.0.1',
User => 'XXXXXX',
Password => 'XXXXXXX',
Table => 'clientes',
#SourceCharset => 'utf-8',
#DestCharset => 'iso-8859-1',
},
# customer uniq id
CustomerKey => 'codcliente',
# customer #
CustomerID => 'codcliente',
#CustomerValid => 'debaja',
CustomerUserListFields => ['nombre', 'email'],
CustomerUserSearchFields => ['nombre', 'email','codcliente'],
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => ['nombre'],
ReadOnly => 1,
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type,http-link
[ 'UserCustomerID', 'CodCliente', 'codcliente', 1, 0,'var' ],
[ 'UserLogin', 'Nombre', 'nombre', 1, 1, 'var' ],
[ 'UserEmail', 'email', 'email', 1, 1, 'var' ],
],
};
Thanks a lot.
I've already asked the same in spanish but maybe this could be more universal.