Created
September 20, 2013 16:40
-
-
Save dperaltab/6640333 to your computer and use it in GitHub Desktop.
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 | |
from datetime import date | |
class popup(osv.osv): | |
_name = "popup" | |
_description = "Popup" | |
def procesar(self, cr, uid, ids, context= None): | |
print "Escribe tu código aquí" | |
print "ACTIVE_MODEL:", context["active_model"] | |
print "ACTIVE_IDS:", context["active_ids"] #imprime ids de los alumnos | |
return True | |
_columns = { | |
'fecha_reg' : fields.date('Fecha de registro', readonly=True), | |
} | |
_defaults = { | |
"fecha_reg": str(date.today()), | |
} | |
popup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment