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
100 changes: 100 additions & 0 deletions pos_supplierinfo_search/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
===========================================
Point of sale - Search products by supplier
===========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:975e1869b8294c679963a615128337b656fa6839c9e640a5be615f249a691d0b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/17.0/pos_supplierinfo_search
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_supplierinfo_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/pos&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

In point of sale interface, allow to search products by supplier name,
supplier product code or supplier product name.

**Table of contents**

.. contents::
:local:

Usage
=====

In point of sale interface, just fill the "search products" box with
some supplier data.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/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 <https://github.com/OCA/pos/issues/new?body=module:%20pos_supplierinfo_search%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa
* TAKOBI

Contributors
------------

- Lorenzo Battistini (https://takobi.online)
- Dhara Solanki <dhara.solanki@initos.com>
- [Tecnativa](https://www.tecnativa.com):

- Carlos Lopez

- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-eLBati| image:: https://github.com/eLBati.png?size=40px
:target: https://github.com/eLBati
:alt: eLBati

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-eLBati|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/17.0/pos_supplierinfo_search>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_supplierinfo_search/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions pos_supplierinfo_search/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2020 Lorenzo Battistini @ TAKOBI
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Point of sale - Search products by supplier",
"summary": "Search products by supplier data",
"version": "17.0.1.0.0",
"development_status": "Beta",
"category": "Point Of Sale",
"website": "https://github.com/OCA/pos",
"author": "Tecnativa, TAKOBI, Odoo Community Association (OCA)",
"maintainers": ["eLBati"],
"license": "LGPL-3",
"application": False,
"installable": True,
"auto_install": False,
"depends": [
"point_of_sale",
],
"assets": {
"point_of_sale._assets_pos": [
"/pos_supplierinfo_search/static/src/js/db.esm.js",
],
},
}
45 changes: 45 additions & 0 deletions pos_supplierinfo_search/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_supplierinfo_search
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-11 09:09+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_supplierinfo_search
#: model:ir.model,name:pos_supplierinfo_search.model_pos_session
msgid "Point of Sale Session"
msgstr ""

#. module: pos_supplierinfo_search
#: model:ir.model,name:pos_supplierinfo_search.model_product_template
msgid "Product"
msgstr ""

#. module: pos_supplierinfo_search
#: model:ir.model.fields,field_description:pos_supplierinfo_search.field_product_product__supplier_data_json
#: model:ir.model.fields,field_description:pos_supplierinfo_search.field_product_template__supplier_data_json
msgid "Supplier data dict"
msgstr "Dict de datos del proveedor"

#. module: pos_supplierinfo_search
#: model:ir.model.fields,help:pos_supplierinfo_search.field_product_product__supplier_data_json
#: model:ir.model.fields,help:pos_supplierinfo_search.field_product_template__supplier_data_json
msgid ""
"Technical field: Used in POS frontend to search products by supplierinfo"
msgstr ""
"Campo técnico: se utiliza en la interfaz de POS para buscar productos por "
"proveedor"

#~ msgid "Product Template"
#~ msgstr "Plantilla de producto"
44 changes: 44 additions & 0 deletions pos_supplierinfo_search/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_supplierinfo_search
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-22 08:58+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: pos_supplierinfo_search
#: model:ir.model,name:pos_supplierinfo_search.model_pos_session
msgid "Point of Sale Session"
msgstr "Sessione punto vendita"

#. module: pos_supplierinfo_search
#: model:ir.model,name:pos_supplierinfo_search.model_product_template
msgid "Product"
msgstr "Prodotto"

#. module: pos_supplierinfo_search
#: model:ir.model.fields,field_description:pos_supplierinfo_search.field_product_product__supplier_data_json
#: model:ir.model.fields,field_description:pos_supplierinfo_search.field_product_template__supplier_data_json
msgid "Supplier data dict"
msgstr "Dizionario dati fornitore"

#. module: pos_supplierinfo_search
#: model:ir.model.fields,help:pos_supplierinfo_search.field_product_product__supplier_data_json
#: model:ir.model.fields,help:pos_supplierinfo_search.field_product_template__supplier_data_json
msgid ""
"Technical field: Used in POS frontend to search products by supplierinfo"
msgstr ""
"Campo tecnico: utilizzato nel frontend POS per cercare prodotti per fornitore"

#~ msgid "Product Template"
#~ msgstr "Modello prodotto"
37 changes: 37 additions & 0 deletions pos_supplierinfo_search/i18n/pos_supplierinfo_search.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_supplierinfo_search
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_supplierinfo_search
#: model:ir.model,name:pos_supplierinfo_search.model_pos_session
msgid "Point of Sale Session"
msgstr ""

#. module: pos_supplierinfo_search
#: model:ir.model,name:pos_supplierinfo_search.model_product_template
msgid "Product"
msgstr ""

#. module: pos_supplierinfo_search
#: model:ir.model.fields,field_description:pos_supplierinfo_search.field_product_product__supplier_data_json
#: model:ir.model.fields,field_description:pos_supplierinfo_search.field_product_template__supplier_data_json
msgid "Supplier data dict"
msgstr ""

#. module: pos_supplierinfo_search
#: model:ir.model.fields,help:pos_supplierinfo_search.field_product_product__supplier_data_json
#: model:ir.model.fields,help:pos_supplierinfo_search.field_product_template__supplier_data_json
msgid ""
"Technical field: Used in POS frontend to search products by supplierinfo"
msgstr ""
2 changes: 2 additions & 0 deletions pos_supplierinfo_search/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import product
from . import pos_session
13 changes: 13 additions & 0 deletions pos_supplierinfo_search/models/pos_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 Tecnativa - Carlos Lopez
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from odoo import models


class PosSession(models.Model):
_inherit = "pos.session"

def _loader_params_product_product(self):
res = super()._loader_params_product_product()
res["search_params"]["fields"].append("supplier_data_json")
return res
26 changes: 26 additions & 0 deletions pos_supplierinfo_search/models/product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import json

from odoo import fields, models


class ProductTemplate(models.Model):
_inherit = "product.template"

supplier_data_json = fields.Char(
"Supplier data dict",
help="Technical field: Used in POS frontend to search products by supplierinfo",
compute="_compute_supplier_data_json",
)

def _compute_supplier_data_json(self):
for rec in self:
rec.supplier_data_json = json.dumps(
[
{
"supplier_name": s.partner_id.display_name,
"supplier_product_code": s.product_code or "",
"supplier_product_name": s.product_name or "",
}
for s in rec.seller_ids
]
)
3 changes: 3 additions & 0 deletions pos_supplierinfo_search/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions pos_supplierinfo_search/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Lorenzo Battistini (<https://takobi.online>)
- Dhara Solanki \<<dhara.solanki@initos.com>\>
- \[Tecnativa\](<https://www.tecnativa.com>):
- Carlos Lopez
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia
2 changes: 2 additions & 0 deletions pos_supplierinfo_search/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In point of sale interface, allow to search products by supplier name,
supplier product code or supplier product name.
2 changes: 2 additions & 0 deletions pos_supplierinfo_search/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In point of sale interface, just fill the "search products" box with
some supplier data.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading