'Compute the different models needed by the system if you want to exclude some partners.'

@api.multi
def _compute_models(self):

    model_mapping = {}
    if self.exclude_contact:
        model_mapping['res.users'] = 'partner_id'
    if (('account.move.line' in self.env) and self.exclude_journal_item):
        model_mapping['account.move.line'] = 'partner_id'
    return model_mapping
