Skip to content

Instantly share code, notes, and snippets.

@dperaltab
Created September 20, 2013 16:40
Show Gist options
  • Save dperaltab/6640333 to your computer and use it in GitHub Desktop.
Save dperaltab/6640333 to your computer and use it in GitHub Desktop.
# -*- 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