Skip to content

Instantly share code, notes, and snippets.

@dperaltab
Created September 27, 2013 14:45
Show Gist options
  • Save dperaltab/6729704 to your computer and use it in GitHub Desktop.
Save dperaltab/6729704 to your computer and use it in GitHub Desktop.
.
.
.
_columns = {
.
.
.
}
_defaults = {
'cod_alumno': lambda x, cr, uid, c: x.pool.get('ir.sequence').get(cr, uid, 'code-alumno'), #se obtiene la secuencia por medio del código (code-alumno)
}
.
.
.
alumno()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment