Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fda308e
[ADD] pos_product_multi_barcode
Mar 22, 2022
869753e
[Misc] Set myself as maintainer
May 30, 2022
784f163
[ADD] icon.png
OCA-git-bot May 31, 2022
98cc99d
pos_product_multi_barcode 14.0.1.0.1
OCA-git-bot May 31, 2022
fb3167f
[14.0][FIX] pos_product_multi_barcode: enable feature to search for p…
ilyasProgrammer Jun 23, 2022
aff7691
pos_product_multi_barcode 14.0.1.0.2
OCA-git-bot Jun 24, 2022
bc4ec52
Added translation using Weblate (Italian)
mymage Mar 16, 2023
725e6ac
[16.0][MIG] pos_product_multi_barcode: Migration to 16.0
nguyenminhchien Aug 28, 2023
b409f55
Translated using Weblate (Italian)
mymage Nov 23, 2023
77b93ef
[FIX] eslint error 'no-param-reassign' in all modules
legalsylvain Jan 18, 2024
22fe817
Added translation using Weblate (Spanish)
Ivorra78 Feb 8, 2024
a5c05a3
[FIX] pos_product_multi_barcode: incoherent data
danielduqma Dec 26, 2024
eb1b028
[IMP] pos_product_multi_barcode: pre-commit auto fixes
edescalona May 20, 2025
9c9c63c
[MIG] pos_product_multi_barcode: Migration to 17.0
edescalona May 20, 2025
aa32c4a
[IMP] pos_product_multi_barcode: pre-commit auto fixes
cristina-hidalgo-tecnativa Mar 16, 2026
04057c8
[MIG] pos_product_multi_barcode: Migration to 18.0
cristina-hidalgo-tecnativa Mar 16, 2026
f5ead7a
[UPD] Update pos_product_multi_barcode.pot
Mar 19, 2026
f4299d2
[BOT] post-merge updates
OCA-git-bot Mar 19, 2026
45bdab4
[MIG] pos_product_multi_barcode: Migration to 19.0
arielbarreiros96 Jul 7, 2026
69fea4e
[DON'T MERGE] test-requirements.txt
arielbarreiros96 Jul 8, 2026
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
93 changes: 93 additions & 0 deletions pos_product_multi_barcode/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=========================
PoS Product multi barcode
=========================

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

.. |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/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/19.0/pos_product_multi_barcode
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_product_multi_barcode
: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=19.0
:alt: Try me on Runboat

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

This module allows to use multiple barcode on a product from the PoS

See
https://github.com/OCA/stock-logistics-barcode/tree/14.0/product_multi_barcode

**Table of contents**

.. contents::
:local:

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_product_multi_barcode%0Aversion:%2019.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
-------

* Akretion

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

- Pierrick Brun <pierrick.brun@akretion.com>
- Ilyas <irazor147@gmail.com>
- Nguyen Minh Chien <chien@trobz.com>
- Ariel Barreiros
`arielbarreiros96 <https://github.com/arielbarreiros96>`__:

Other credits
-------------

The migration of this module from 14.0 to 16.0 was financially supported
by Camptocamp

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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/19.0/pos_product_multi_barcode>`_ 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_product_multi_barcode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions pos_product_multi_barcode/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "PoS Product multi barcode",
"summary": "Make product multi barcodes usable in the point of sale",
"version": "19.0.1.0.0",
"category": "Point of Sale",
"website": "https://github.com/OCA/pos",
"author": "Akretion, Odoo Community Association (OCA)",
"maintainer": "PierrickBrun",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"point_of_sale",
"product_multi_barcode",
],
"assets": {
"point_of_sale._assets_pos": [
"pos_product_multi_barcode/static/src/app/store/product_product.esm.js",
]
},
}
32 changes: 32 additions & 0 deletions pos_product_multi_barcode/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_product_multi_barcode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-08 22:35+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_product_multi_barcode
#: model:ir.model,name:pos_product_multi_barcode.model_pos_session
msgid "Point of Sale Session"
msgstr "Sesión del Punto de Venta"

#. module: pos_product_multi_barcode
#: model:ir.model,name:pos_product_multi_barcode.model_product_product
msgid "Product Variant"
msgstr "Variante del Producto"

#. module: pos_product_multi_barcode
#: model:ir.model.fields,field_description:pos_product_multi_barcode.field_product_product__barcodes_json
msgid "barcode list"
msgstr "lista de código de barras"
44 changes: 44 additions & 0 deletions pos_product_multi_barcode/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_product_multi_barcode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-23 19:35+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 4.17\n"

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

#. module: pos_product_multi_barcode
#: model:ir.model,name:pos_product_multi_barcode.model_product_product
msgid "Product Variant"
msgstr "Variante prodotto"

#. module: pos_product_multi_barcode
#: model:ir.model.fields,field_description:pos_product_multi_barcode.field_product_product__barcodes_json
msgid "barcode list"
msgstr "elenco codici a barre"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"

#~ msgid "Product"
#~ msgstr "Prodotto"
24 changes: 24 additions & 0 deletions pos_product_multi_barcode/i18n/pos_product_multi_barcode.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_product_multi_barcode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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_product_multi_barcode
#: model:ir.model,name:pos_product_multi_barcode.model_product_product
msgid "Product Variant"
msgstr ""

#. module: pos_product_multi_barcode
#: model:ir.model.fields,field_description:pos_product_multi_barcode.field_product_product__barcodes_json
msgid "barcode list"
msgstr ""
1 change: 1 addition & 0 deletions pos_product_multi_barcode/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import product
27 changes: 27 additions & 0 deletions pos_product_multi_barcode/models/product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2022 Akretion (https://www.akretion.com).
# @author Pierrick Brun <pierrick.brun@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

import json

from odoo import api, fields, models


class ProductProduct(models.Model):
_inherit = "product.product"

# technical field used in POS frontend
barcodes_json = fields.Char(
"barcode list", readonly=True, compute="_compute_barcodes_json"
)

@api.depends("barcode_ids.name")
def _compute_barcodes_json(self):
for product in self:
barcodes = list(product.mapped("barcode_ids.name"))
product.barcodes_json = json.dumps(barcodes)

@api.model
def _load_pos_data_fields(self, config):
fields = super()._load_pos_data_fields(config)
return list(dict.fromkeys(fields + ["barcodes_json"]))
3 changes: 3 additions & 0 deletions pos_product_multi_barcode/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions pos_product_multi_barcode/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
> - Pierrick Brun \<pierrick.brun@akretion.com\>
> - Ilyas \<irazor147@gmail.com\>
> - Nguyen Minh Chien \<chien@trobz.com\>
> - Ariel Barreiros [arielbarreiros96](https://github.com/arielbarreiros96):
2 changes: 2 additions & 0 deletions pos_product_multi_barcode/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The migration of this module from 14.0 to 16.0 was financially supported
by Camptocamp
4 changes: 4 additions & 0 deletions pos_product_multi_barcode/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module allows to use multiple barcode on a product from the PoS

See
<https://github.com/OCA/stock-logistics-barcode/tree/14.0/product_multi_barcode>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading