def property2Field(fName, propDict, infoField=False, fBase=''):
    """ Genera la definicion del campo en la pci """
    if len(fBase) > 0:
        fBase += '__'
    field = {'name': fName, 'header': propDict.get('code', fName),
        'readOnly': propDict.get('isReadOnly', False), 'primary': propDict.
        get('isPrimary', False), 'required': propDict.get('isRequired', 
        False), 'tooltip': propDict.get('description', ''), 'vType':
        propDict.get('vType', ''), 'type': propDict.get('baseType',
        'string'), 'choices': propDict.get('prpChoices', ''), 'prpDefault':
        propDict.get('prpDefault', ''), 'prpLength': propDict.get(
        'prpLength', ''), 'prpScale': propDict.get('prpScale', ''),
        'crudType': propDict.get('crudType', '')}
    if infoField:
        field['id'] = fBase + fName
        field['text'] = fName
        field['leaf'] = True
        field['checked'] = False
    return field
