diff --git a/pos_partner_ref/README.rst b/pos_partner_ref/README.rst index 05b3279cd6..e85d1e6308 100644 --- a/pos_partner_ref/README.rst +++ b/pos_partner_ref/README.rst @@ -7,7 +7,7 @@ Point of Sale - Partner contact ref !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:f4e560cdcb93e60d8824aefae214926947a93514b2ab7beeeac48942d9dc984d + !! source digest: sha256:f32f705adb9f72e6581e54625381b964ff3d9f299b15ee2cad6c2fa1efb1aecc !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -57,10 +57,13 @@ Authors Contributors ------------ -- Emanuel Cino -- Juan Carlos Bonilla Bravo -- Enric Tobella -- Cyril VINH-TUNG +- Emanuel Cino +- Juan Carlos Bonilla Bravo +- Enric Tobella +- Cyril VINH-TUNG +- `SerpentCS `__: + + - Parvez Qureshi Maintainers ----------- diff --git a/pos_partner_ref/models/pos_session.py b/pos_partner_ref/models/pos_session.py index 89e93d30c2..7d7a65913a 100644 --- a/pos_partner_ref/models/pos_session.py +++ b/pos_partner_ref/models/pos_session.py @@ -10,3 +10,18 @@ def _loader_params_res_partner(self): res = super()._loader_params_res_partner() res["search_params"]["fields"].append("ref") return res + + def get_pos_ui_res_partner_by_params(self, custom_search_params): + if custom_search_params and "domain" in custom_search_params: + search_query = [ + condition[2] + for condition in custom_search_params["domain"] + if condition[0] == "parent_name" + ] + if search_query and search_query[0]: + existing_domain = custom_search_params["domain"] + new_condition = ("ref", "ilike", search_query[0]) + custom_search_params["domain"] = ( + ["|"] + existing_domain + [new_condition] + ) + return super().get_pos_ui_res_partner_by_params(custom_search_params) diff --git a/pos_partner_ref/readme/CONTRIBUTORS.md b/pos_partner_ref/readme/CONTRIBUTORS.md index fd542b5c8c..9087c3cf53 100644 --- a/pos_partner_ref/readme/CONTRIBUTORS.md +++ b/pos_partner_ref/readme/CONTRIBUTORS.md @@ -2,3 +2,5 @@ - Juan Carlos Bonilla Bravo \<\> - Enric Tobella - Cyril VINH-TUNG \<\> + - [SerpentCS](https://www.serpentcs.com): + - Parvez Qureshi \<\> diff --git a/pos_partner_ref/static/description/index.html b/pos_partner_ref/static/description/index.html index a6d969a815..0ef0f158c7 100644 --- a/pos_partner_ref/static/description/index.html +++ b/pos_partner_ref/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +367,7 @@

Point of Sale - Partner contact ref

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:f4e560cdcb93e60d8824aefae214926947a93514b2ab7beeeac48942d9dc984d +!! source digest: sha256:f32f705adb9f72e6581e54625381b964ff3d9f299b15ee2cad6c2fa1efb1aecc !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runboat

Adds the ref field in the POS Customer Screen so that the information @@ -406,12 +407,18 @@

Contributors

  • Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>
  • Enric Tobella
  • Cyril VINH-TUNG <cyril@invitu.com>
  • +
  • SerpentCS: +
  • Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    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.