You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
260 B

  1. # -*- coding: utf-8 -*-
  2. from openerp import SUPERUSER_ID
  3. from openerp.api import Environment
  4. def post_init_hook(cr, pool):
  5. env = Environment(cr, SUPERUSER_ID, {})
  6. env['res.partner'].search(
  7. [('birthdate', "!=", False)])._birthdate_inverse()