update app_chatgpt: get_openai

This commit is contained in:
Chill
2024-04-01 15:47:31 +08:00
parent 6f1b1cb1d6
commit ab34243fe9
5 changed files with 22 additions and 65 deletions

View File

@@ -11,7 +11,7 @@ class ResPartner(models.Model):
is_chat_private = fields.Boolean('Allow Chat Private', default=False)
@api.model
def im_search(self, name, limit=20):
def im_search(self, name, limit=20, excluded_ids=None):
users = self.env['res.users'].search([
('id', '!=', self.env.user.id),
('name', 'ilike', name),