This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
columns = { | |
. | |
. | |
. | |
#agregar el nuevo atributo | |
'departamento_id' : fields.many2one('departamento', 'Departamento'), | |
} | |
class departamento(osv.osv): | |
_name = "departamento" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<openerp> | |
<data> | |
<!-- Top menu item --> | |
<menuitem name="Alumno" id="alumno_menu_base"/> | |
<menuitem name="Registro alumno" id="alumno_menu_base_reg" parent="alumno_menu_base" /> | |
<!-- tree --> | |
<record model="ir.ui.view" id="alumno_tree_view"> | |
<field name="name">alumno.tree</field> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from osv import fields, osv | |
class alumno(osv.osv): | |
_name = "alumno" | |
_description = "Registro alumno" | |
_columns = { | |
'nombres' : fields.char('Nombres', size=64, required=True), | |
'apellido_paterno' : fields.char('Apellido Paterno', size=64), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "Alumno", | |
"version" : "0.1", | |
"author" : "yaroslab", | |
"website" : "http://yaroslab.com/", | |
"category" : "Generic Modules/Others", | |
"depends" : ["base"], | |
"description" : "Registro alumno", | |
"init_xml" : ["alumno_view.xml",], | |
"demo_xml" : [], |
NewerOlder