Skip to content

Instantly share code, notes, and snippets.

@dperaltab
Created September 20, 2013 16:12
Show Gist options
  • Save dperaltab/6639977 to your computer and use it in GitHub Desktop.
Save dperaltab/6639977 to your computer and use it in GitHub Desktop.
columns = {
.
.
.
#agregar el nuevo atributo
'departamento_id' : fields.many2one('departamento', 'Departamento'),
}
class departamento(osv.osv):
_name = "departamento"
_description = "departamento"
_columns = {
'name' : fields.char('Nombre', size=64, required=True),
'codigo' : fields.char('Código', size=8, required=True),
}
departamento()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment