Project

General

Profile

Task #328

Búsqueda de Fungibles por ID y Nombre

Added by Fiorella Quino almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Fiorella Quino
Category:
-
Target version:
Start date:
12/10/2015
Due date:
12/14/2015
% Done:

100%

Estimated time:
3.00 h
Spent time:

Description

Que se permita agregar Fungibles a una Solicitud de Compra o BOM ingresando Nombre o ID del fungible.

History

#1 Updated by Fiorella Quino almost 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Se agregó búsqueda tanto en ID y Nombre del Fungible agregando el siguiente código:
**
from django.db.models import Q**
items = FungibleItem.objects.filter(Q(name__contains=filtertext) | Q(id__startswith=filtertext)).values('id', 'name')

#2 Updated by Fiorella Quino over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF