Skip to content

Instantly share code, notes, and snippets.

@monroy95
Created December 12, 2017 23:41
Show Gist options
  • Save monroy95/81bd48b493fdfaab65449cc27a670c27 to your computer and use it in GitHub Desktop.
Save monroy95/81bd48b493fdfaab65449cc27a670c27 to your computer and use it in GitHub Desktop.
Obtener multiples propiedades de un documento.
# Retorna a los clientes con nombres empiecen con a
customers = frappe.db.get_values('Customer', {'name':('like a%')}
# Retorna todo sobre el ultimo acceso de **usuario** 'test@example.com'
user = frappe.db.get_values('user', 'test@example.com', '*')[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment