Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     super(AnticipoFilterForm, self).__init__(*args, **kwargs)
     self.fields[
         'empleado'].choices = EmpleadoBusiness.get_Todos_ForSelectCustom()
     self.fields[
         'unidad_negocio'].choices = CentroCostoBusiness.get_Todos_ForSelectCustom(
         )
     self.fields[
         'autorizador'].choices = EmpleadoBusiness.get_Todos_ForSelectCustom(
         )
Esempio n. 2
0
    def __init__(self, *args, **kwargs):
        super(ViaticoFilterForm, self).__init__(*args, **kwargs)
        self.fields['empleado_clave'].required = False
        self.fields['un_clave'].required = False
        self.fields['autorizador_clave'].required = False

        self.fields[
            'empleado_clave'].choices = EmpleadoBusiness.get_Todos_ForSelectCustom(
            )
        self.fields[
            'un_clave'].choices = CentroCostoBusiness.get_Todos_ForSelectCustom(
            )
        self.fields[
            'autorizador_clave'].choices = EmpleadoBusiness.get_Todos_ForSelectCustom(
            )