diff --git a/partner_pricelist_search/README.rst b/partner_pricelist_search/README.rst
index 90f3e82c8505..0592b5de012b 100644
--- a/partner_pricelist_search/README.rst
+++ b/partner_pricelist_search/README.rst
@@ -17,13 +17,13 @@ Partner pricelist search
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
- :target: https://github.com/OCA/partner-contact/tree/17.0/partner_pricelist_search
+ :target: https://github.com/OCA/partner-contact/tree/18.0/partner_pricelist_search
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_pricelist_search
+ :target: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-partner_pricelist_search
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -52,7 +52,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -72,6 +72,16 @@ Contributors
- Carlos Dauden
- Víctor Martínez
+- `Trobz `__:
+
+ - Do Anh Duy
+
+Other credits
+-------------
+
+The migration of this module from 17.0 to 18.0 was financially supported
+by Camptocamp.
+
Maintainers
-----------
@@ -85,6 +95,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/partner-contact `_ project on GitHub.
+This module is part of the `OCA/partner-contact `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/partner_pricelist_search/__manifest__.py b/partner_pricelist_search/__manifest__.py
index 5adf5e465f6b..7adcdb5e3eb2 100644
--- a/partner_pricelist_search/__manifest__.py
+++ b/partner_pricelist_search/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Partner pricelist search",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"author": "Tecnativa,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/partner-contact",
"category": "Partner Management",
diff --git a/partner_pricelist_search/models/res_partner.py b/partner_pricelist_search/models/res_partner.py
index 1beb51302f01..3c262ab29284 100644
--- a/partner_pricelist_search/models/res_partner.py
+++ b/partner_pricelist_search/models/res_partner.py
@@ -12,19 +12,21 @@ class ResPartner(models.Model):
)
@api.model
- def search(self, args, offset=0, limit=None, order=None):
+ def _search(self, domain, offset=0, limit=None, order=None):
# Substitute pricelist tuple
partner_domain = [
(1, "=", 1)
- if (isinstance(x, (list | tuple)) and x[0] == "property_product_pricelist")
- else x
- for x in args
+ if (
+ isinstance(cond, (list | tuple))
+ and cond[0] == "property_product_pricelist"
+ )
+ else cond
+ for cond in domain
]
return super(
ResPartner, self.with_context(search_partner_domain=partner_domain)
- ).search(args, offset=offset, limit=limit, order=order)
+ )._search(domain, offset=offset, limit=limit, order=order)
- @api.model
def _search_property_product_pricelist(self, operator, value):
domain = self.env.context.get("search_partner_domain", [])
partners = self.with_context(prefetch_fields=False).search(domain)
diff --git a/partner_pricelist_search/readme/CONTRIBUTORS.md b/partner_pricelist_search/readme/CONTRIBUTORS.md
index d13ac0642ba8..f280633a4c7c 100644
--- a/partner_pricelist_search/readme/CONTRIBUTORS.md
+++ b/partner_pricelist_search/readme/CONTRIBUTORS.md
@@ -1,3 +1,5 @@
- [Tecnativa](https://www.tecnativa.com):
- Carlos Dauden
- Víctor Martínez
+- [Trobz](https://trobz.com):
+ - Do Anh Duy \<\>
diff --git a/partner_pricelist_search/readme/CREDITS.md b/partner_pricelist_search/readme/CREDITS.md
new file mode 100644
index 000000000000..83b3ec91f7d5
--- /dev/null
+++ b/partner_pricelist_search/readme/CREDITS.md
@@ -0,0 +1 @@
+The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.
diff --git a/partner_pricelist_search/static/description/index.html b/partner_pricelist_search/static/description/index.html
index db916448e9f5..2ba3747dfee5 100644
--- a/partner_pricelist_search/static/description/index.html
+++ b/partner_pricelist_search/static/description/index.html
@@ -369,7 +369,7 @@ Partner pricelist search
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d17b1b14a086b860b90330557fc80c3d404f5f82ed14c809fb38b0fe146185dc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module adds search by pricelist field option in partners.
Also add a new smart button called “Customers” in pricelist form view to
show partners with that pricelist.
@@ -381,7 +381,8 @@ Partner pricelist search
Credits
@@ -397,7 +398,7 @@
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -416,10 +417,19 @@
Víctor Martínez
+
Trobz:
+
+
+
+
+
+
The migration of this module from 17.0 to 18.0 was financially supported
+by Camptocamp.