'Call new-style methods on records (new API style).'

@mute_logger('odoo.models')
def test_45_new_new(self):

    partners = self.env['res.partner'].search([('name', 'ilike', 'j')])
    self.assertTrue(partners)
    for p in partners:
        p.write({'active': False})
    for p in partners:
        self.assertFalse(p.active)
