Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
42e097c
[ADD] pos_product_multi_barcode
Mar 22, 2022
3e94027
[Misc] Set myself as maintainer
May 30, 2022
19fbc9b
[UPD] Update pos_product_multi_barcode.pot
May 31, 2022
74a8bef
[UPD] README.rst
OCA-git-bot May 31, 2022
1bf61fd
[ADD] icon.png
OCA-git-bot May 31, 2022
6cf2c9e
pos_product_multi_barcode 14.0.1.0.1
OCA-git-bot May 31, 2022
95ff21e
[14.0][FIX] pos_product_multi_barcode: enable feature to search for p…
ilyasProgrammer Jun 23, 2022
401a4a2
[UPD] README.rst
OCA-git-bot Jun 24, 2022
cc4a505
pos_product_multi_barcode 14.0.1.0.2
OCA-git-bot Jun 24, 2022
964a0ec
Added translation using Weblate (Italian)
mymage Mar 16, 2023
8433b1e
Translated using Weblate (Italian)
mymage Mar 16, 2023
318e662
[16.0][MIG] pos_product_multi_barcode: Migration to 16.0
nguyenminhchien Aug 28, 2023
403d60a
[UPD] Update pos_product_multi_barcode.pot
Nov 16, 2023
58664eb
[BOT] post-merge updates
OCA-git-bot Nov 16, 2023
e4f82d1
Update translation files
weblate Nov 16, 2023
9366ae3
Translated using Weblate (Italian)
mymage Nov 23, 2023
db16a6e
[FIX] eslint error 'no-param-reassign' in all modules
legalsylvain Jan 18, 2024
d824a1a
[BOT] post-merge updates
OCA-git-bot Jan 20, 2024
83a8776
Added translation using Weblate (Spanish)
Ivorra78 Feb 8, 2024
f068251
Translated using Weblate (Spanish)
Ivorra78 Feb 8, 2024
fecadb1
[FIX] pos_product_multi_barcode: incoherent data
danielduqma Dec 26, 2024
d66df48
[BOT] post-merge updates
OCA-git-bot Jan 13, 2025
a82f752
[IMP] pos_product_multi_barcode: pre-commit auto fixes
edescalona May 20, 2025
4a5eaf4
[MIG] pos_product_multi_barcode: Migration to 17.0
edescalona May 20, 2025
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
87 changes: 87 additions & 0 deletions pos_product_multi_barcode/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
=========================
PoS Product multi barcode
=========================

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

.. |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-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/17.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-17-0/pos-17-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=17.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:%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
-------

* Akretion

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

- Pierrick Brun <pierrick.brun@akretion.com>
- Ilyas <irazor147@gmail.com>
- Nguyen Minh Chien <chien@trobz.com>

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/17.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": "17.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/db.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"
29 changes: 29 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,29 @@
# 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"
"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_pos_session
msgid "Point of Sale Session"
msgstr ""

#. 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 ""
2 changes: 2 additions & 0 deletions pos_product_multi_barcode/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import pos_session
from . import product
12 changes: 12 additions & 0 deletions pos_product_multi_barcode/models/pos_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import models


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

def _loader_params_product_product(self):
result = super()._loader_params_product_product()
result["search_params"]["fields"].append("barcodes_json")
return result
21 changes: 21 additions & 0 deletions pos_product_multi_barcode/models/product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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 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"
)

def _compute_barcodes_json(self):
for product in self:
barcodes = [barcode for barcode in product.mapped("barcode_ids.name")]
product.barcodes_json = json.dumps(barcodes)
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"
3 changes: 3 additions & 0 deletions pos_product_multi_barcode/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> - Pierrick Brun \<pierrick.brun@akretion.com\>
> - Ilyas \<irazor147@gmail.com\>
> - Nguyen Minh Chien \<chien@trobz.com\>
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