Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions pos_partner_ref/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,10 +57,13 @@ Authors
Contributors
------------

- Emanuel Cino <ecino@compassion.ch>
- Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>
- Enric Tobella
- Cyril VINH-TUNG <cyril@invitu.com>
- Emanuel Cino <ecino@compassion.ch>
- Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>
- Enric Tobella
- Cyril VINH-TUNG <cyril@invitu.com>
- `SerpentCS <https://www.serpentcs.com>`__:

- Parvez Qureshi <parvez.qureshi@serpentcs.com>

Maintainers
-----------
Expand Down
15 changes: 15 additions & 0 deletions pos_partner_ref/models/pos_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions pos_partner_ref/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
- Juan Carlos Bonilla Bravo \<<juancarlos.bonilla@factorlibre.com>\>
- Enric Tobella
- Cyril VINH-TUNG \<<cyril@invitu.com>\>
- [SerpentCS](https://www.serpentcs.com):
- Parvez Qureshi \<<parvez.qureshi@serpentcs.com>\>
17 changes: 12 additions & 5 deletions pos_partner_ref/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -366,7 +367,7 @@ <h1 class="title">Point of Sale - Partner contact ref</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f4e560cdcb93e60d8824aefae214926947a93514b2ab7beeeac48942d9dc984d
!! source digest: sha256:f32f705adb9f72e6581e54625381b964ff3d9f299b15ee2cad6c2fa1efb1aecc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/pos/tree/17.0/pos_partner_ref"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_partner_ref"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/pos&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Adds the ref field in the POS Customer Screen so that the information
Expand Down Expand Up @@ -406,12 +407,18 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<li>Juan Carlos Bonilla Bravo &lt;<a class="reference external" href="mailto:juancarlos.bonilla&#64;factorlibre.com">juancarlos.bonilla&#64;factorlibre.com</a>&gt;</li>
<li>Enric Tobella</li>
<li>Cyril VINH-TUNG &lt;<a class="reference external" href="mailto:cyril&#64;invitu.com">cyril&#64;invitu.com</a>&gt;</li>
<li><a class="reference external" href="https://www.serpentcs.com">SerpentCS</a>:<ul>
<li>Parvez Qureshi &lt;<a class="reference external" href="mailto:parvez.qureshi&#64;serpentcs.com">parvez.qureshi&#64;serpentcs.com</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
Expand Down
Loading