from openerp import api, fields, models class ResPartner(models.Model): inherit = 'res.partner' @api.model def _get_customers(self): pass