From d7c43f332425699a92d20cbfc9f6d2b7afd23751 Mon Sep 17 00:00:00 2001 From: Anjeel Haria Date: Tue, 30 Jul 2024 19:27:20 +0530 Subject: [PATCH] Changes to allow searching members and contacts by their name,email,ref,vat,display_name and company_registry through the name filter --- membership_activity_gitlab/models/project_project.py | 1 + .../views/res_partner_view.xml | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/membership_activity_gitlab/models/project_project.py b/membership_activity_gitlab/models/project_project.py index 26789b2..962634d 100644 --- a/membership_activity_gitlab/models/project_project.py +++ b/membership_activity_gitlab/models/project_project.py @@ -2,6 +2,7 @@ import dateutil from dateutil.relativedelta import relativedelta + from odoo import api, fields, models diff --git a/website_membership_registration/views/res_partner_view.xml b/website_membership_registration/views/res_partner_view.xml index 75da7a0..c65c4bb 100644 --- a/website_membership_registration/views/res_partner_view.xml +++ b/website_membership_registration/views/res_partner_view.xml @@ -45,7 +45,17 @@ res.partner - ['|', '|', ('display_name', 'ilike', self), ('parent_id', 'ilike', self), ('ref' , '=', self)] + ['|', '|', '|', '|', '|',('name', 'ilike', self), ('display_name', 'ilike', self), ('ref', '=', self), ('email', 'ilike', self), ('vat', 'ilike', self), ('company_registry', 'ilike', self)] + + + + + + + res.partner + + + ['|', '|', '|', '|', '|',('name', 'ilike', self), ('display_name', 'ilike', self), ('ref', '=', self), ('email', 'ilike', self), ('vat', 'ilike', self), ('company_registry', 'ilike', self)]