Skip to content

Commit

Permalink
[18.0][MIG] base_multi_company
Browse files Browse the repository at this point in the history
  • Loading branch information
BertVGroenendael committed Oct 21, 2024
1 parent 2eda6a1 commit b910ace
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions base_multi_company/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Contributors
- Rodrigo Ferreira <[email protected]>
- Florian da Costa <[email protected]>
- Denis Roussel <[email protected]>
- Bert Van Groenendael <[email protected]>

Maintainers
-----------
Expand Down
11 changes: 3 additions & 8 deletions base_multi_company/models/multi_company_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions base_multi_company/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- Rodrigo Ferreira \<<[email protected]>\>
- Florian da Costa \<<[email protected]>\>
- Denis Roussel \<<[email protected]>\>
- Bert Van Groenendael \<<[email protected]>\>
1 change: 1 addition & 0 deletions base_multi_company/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ <h1>Contributors</h1>
<li>Rodrigo Ferreira &lt;<a class="reference external" href="mailto:rodrigosferreira91&#64;gmail.com">rodrigosferreira91&#64;gmail.com</a>&gt;</li>
<li>Florian da Costa &lt;<a class="reference external" href="mailto:florian.dacosta&#64;akretion.com">florian.dacosta&#64;akretion.com</a>&gt;</li>
<li>Denis Roussel &lt;<a class="reference external" href="mailto:denis.roussel&#64;acsone.eu">denis.roussel&#64;acsone.eu</a>&gt;</li>
<li>Bert Van Groenendael &lt;<a class="reference external" href="mailto:bert.vangroenendael&#64;dynapps.eu">bert.vangroenendael&#64;dynapps.eu</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odoo-test-helper>=1.1.0

0 comments on commit b910ace

Please sign in to comment.