Classe Openerp

python - January 22, 2014 - 13:24
  Classe simple openerp
class my_class(osv.osv):

    _name = "my.class.name"
    _inherit = "my.parent.object"

    _columns = {
    }

    _defaults = {
    }

    def create(self, cr, uid, vals):
        return new_id

    def write(self, cr, uid, ids, vals, context=None):
        return True