From b910ace50693d80b9fb3fd2470a69c91cfec91da Mon Sep 17 00:00:00 2001 From: Bert Van Groenendael Date: Mon, 21 Oct 2024 10:37:17 +0200 Subject: [PATCH] [18.0][MIG] base_multi_company --- base_multi_company/README.rst | 1 + base_multi_company/models/multi_company_abstract.py | 11 +++-------- base_multi_company/readme/CONTRIBUTORS.md | 1 + base_multi_company/static/description/index.html | 1 + test-requirements.txt | 1 + 5 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 test-requirements.txt diff --git a/base_multi_company/README.rst b/base_multi_company/README.rst index 536b71a5c35..28e36a1d808 100644 --- a/base_multi_company/README.rst +++ b/base_multi_company/README.rst @@ -86,6 +86,7 @@ Contributors - Rodrigo Ferreira - Florian da Costa - Denis Roussel +- Bert Van Groenendael Maintainers ----------- diff --git a/base_multi_company/models/multi_company_abstract.py b/base_multi_company/models/multi_company_abstract.py index 8ebb84aefd8..9fdc5099f2a 100644 --- a/base_multi_company/models/multi_company_abstract.py +++ b/base_multi_company/models/multi_company_abstract.py @@ -98,15 +98,10 @@ def _patch_company_domain(self, args): return new_args @api.model - def _name_search(self, name, domain=None, operator="ilike", limit=None, order=None): + def _search_display_name(self, operator="ilike", value=dict): + domain = super()._search_display_name(operator=operator, value=value) new_domain = self._patch_company_domain(domain) - return super()._name_search( - name, - domain=new_domain, - operator=operator, - limit=limit, - order=order, - ) + return new_domain @api.model def search_read(self, domain=None, fields=None, offset=0, limit=None, order=None): diff --git a/base_multi_company/readme/CONTRIBUTORS.md b/base_multi_company/readme/CONTRIBUTORS.md index 7e6742f313b..3bd6c858028 100644 --- a/base_multi_company/readme/CONTRIBUTORS.md +++ b/base_multi_company/readme/CONTRIBUTORS.md @@ -5,3 +5,4 @@ - Rodrigo Ferreira \<\> - Florian da Costa \<\> - Denis Roussel \<\> +- Bert Van Groenendael \<\> diff --git a/base_multi_company/static/description/index.html b/base_multi_company/static/description/index.html index efa70137437..345929623a2 100644 --- a/base_multi_company/static/description/index.html +++ b/base_multi_company/static/description/index.html @@ -427,6 +427,7 @@

Contributors

  • Rodrigo Ferreira <rodrigosferreira91@gmail.com>
  • Florian da Costa <florian.dacosta@akretion.com>
  • Denis Roussel <denis.roussel@acsone.eu>
  • +
  • Bert Van Groenendael <bert.vangroenendael@dynapps.eu>
  • diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000000..02849d43494 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +odoo-test-helper>=1.1.0