Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
9f95537
[WIP][ADD] pos_self_service_base
vvrossem Mar 3, 2021
fdfcd55
[IMP] pos_ss_base: make widgets available for inheritance
vvrossem Mar 3, 2021
61218ee
[WIP] pos_ss_base: barcode formatting
vvrossem Mar 18, 2021
9da9848
[WIP][ADD] Add script that send ZPL to printer through CUPS and nginx…
Mar 18, 2021
c1fafaa
[ADD] add bundle to send zpl to cups printing server from pos
Mar 24, 2021
01abf14
[ADD] pos_self_service_base: label dimensions
vvrossem Mar 24, 2021
fc6230f
[IMP] pos_self_service_base: hide topheader bar
vvrossem Mar 24, 2021
ea5fcfe
[FIX] pos_self_service_base: keep pos-topheader on xml side
vvrossem Mar 24, 2021
1d654a2
[IMP] pos_self_service_base: bigger control-buttons
vvrossem Mar 24, 2021
d9964a1
[ADD] pos_self_service_base: use label dimension configuration in ZPL…
Mar 25, 2021
5551313
[FIX] pos_self_service_base: missing _t
vvrossem Mar 25, 2021
fffadc1
[FIX] pos_self_service_base: SelfServiceActionButtonWidget
vvrossem Mar 25, 2021
2c46168
[ADD]: pos_self_service_base: make printer name configurable
Mar 25, 2021
3143a87
[IMP] pos_self_service_base: pos_config_view
vvrossem Mar 25, 2021
744bfc2
[IMP] pos_self_service_base: remove back button and put print action …
Mar 25, 2021
c938f97
[FIX] self_service_action_buttons.back_button is undefined
vvrossem Mar 25, 2021
4f9b004
[WIP] pos_self_service_base: observer pattern/subject scalewidget
vvrossem Mar 25, 2021
3f819ce
[DOC]: pos_self_service_base: add documentation about configuration, …
Mar 29, 2021
1831c73
[FIX]: pos_self_service_base: replace backtick string interpolation w…
Mar 30, 2021
683b961
[DOC]: pos_self_service_base: add documentation about nginx reverse p…
Mar 30, 2021
cdc2d91
[IMP] pos_self_service_base: documentation
vvrossem Mar 31, 2021
bc30593
[IMP] pos_self_service_base: widget available for inheritance
vvrossem Mar 31, 2021
eb7352a
[IMP] pos_self_service_base: print only if scale weight > 0
vvrossem Mar 31, 2021
5b4d462
[IMP] pos_self_service_base: remove unnecessary console.log
vvrossem Mar 31, 2021
cbfbba4
[IMP] pos_self_service_base: error popup if missing printer name
vvrossem Mar 31, 2021
ed3852f
[IMP] pos_self_service_base: correct doc for self-service setup
vvrossem Mar 31, 2021
a0d1bc4
[REF] externalise zpl print into pos_self_service_print_zpl
vvrossem Apr 1, 2021
36d1704
[FIX] pos_self_service_base: left/rightpane if iface_self_service
vvrossem Apr 12, 2021
4eab0b4
[FIX] pos_self_service_print_zpl: print only if printer_name
vvrossem Apr 12, 2021
882f4e9
[IMP] pos_self_service_base: move jquery manipulation in function
vvrossem Apr 12, 2021
3cb8050
[FIX] pos_self_service_print_zpl: missing printer_name
vvrossem Apr 13, 2021
862e890
[DOC] pos_self_service_base: add documentation about config to print …
Apr 13, 2021
1bd08ed
[REF] pos_self_service_base: pos_tare dependency added
vvrossem Apr 14, 2021
bdda071
[IMP] pos_self_service_print_zpl: README.rst updated
vvrossem Apr 14, 2021
516d5fb
[IMP] pos_self_service_base: README.rst updated
vvrossem Apr 14, 2021
59fd2c4
[IMP] pos_self_service_base: lint
vvrossem Apr 21, 2021
3fd01fd
[IMP] pos_self_service_print_zpl: lint
vvrossem Apr 21, 2021
d4b125c
[IMP] pos_self_service_[base|print_zpl]: semi-colon ...
vvrossem Apr 21, 2021
2558029
[FIX] precommit configuration
robinkeunen Apr 21, 2021
1c0b429
[IMP] pos_self_service_[base|print_zpl]:remove commented code
vvrossem Apr 21, 2021
7ccda1e
[IMP] pre-commit run -a
vvrossem Apr 21, 2021
53277aa
[IMP] addons readme and table
robinkeunen May 11, 2021
2e6052e
[ADD] pos_self_service_print_zpl: add set darkness zpl command
May 20, 2021
4f07baf
[FIX] Run pre-commit
carmenbianca Mar 9, 2022
125acc4
[FIX] Satisfy pre-commit
carmenbianca Mar 9, 2022
9a88a39
[UPD] Update pos_self_service_base.pot
Mar 11, 2022
decc24c
[UPD] Update pos_self_service_print_zpl.pot
Mar 11, 2022
63af591
[FIX] SCRLfs → SC
carmenbianca Jun 29, 2022
2946cb5
[UPD] Run prettier
carmenbianca Jun 30, 2023
71d8e53
[UPD] Update pos_self_service_base.pot
Jun 30, 2023
676f7a8
[UPD] README.rst
github-grap-bot Dec 15, 2023
8130849
[ADD] base_pos_self_service_weighing
carmenbianca Feb 19, 2024
41c6f70
[IMP] Improve base_pos_self_service_weighing
robinkeunen Apr 12, 2024
503dfcb
[ADD] pos_self_service_weighing_tare
robinkeunen Apr 11, 2024
1f4b8f5
[IMP] improve pos_self_service_weighing_tare
huguesdk Jun 7, 2025
1f84efa
[MIG] pos_self_service_print_zpl: migration to 16.0
huguesdk May 9, 2025
8bde9a8
[ADD] new module pos_self_service_weighing_product
huguesdk Jun 7, 2025
4509657
[ADD] pos_self_service_weighing_product_tare
huguesdk May 7, 2025
d7ccab3
[IMP] pos_ss_base: add backend close session button
mihien Apr 21, 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
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ globals:
openerp: readonly
owl: readonly
luxon: readonly
QUnit: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
Expand Down
141 changes: 141 additions & 0 deletions base_pos_self_service_weighing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
=================================
Self-Service Weighing Base Module
=================================

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

.. |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/16.0/base_pos_self_service_weighing
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-base_pos_self_service_weighing
: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=16.0
:alt: Try me on Runboat

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

Base module to configure a PoS as a self-service weighing station.

This module allows to configure a PoS to be a self-service weighing station, where customers can weigh things by themselves.

As a base module, this covers primarily the welcome screen and some common functionalities, but is not usable on its own.
See these modules instead:

* ``pos_self_service_weighing_product``
* ``pos_self_service_weighing_tare``
* ``pos_self_service_weighing_print_zpl``

**Table of contents**

.. contents::
:local:

Configuration
=============

Setup the self-service weighing station
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Create a new PoS
2. Enable "Is a Self-Service Weighing Station"
3. Setup hardware proxy

* Enable electronic scale
4. Enable barcode reader and its nomenclature

Usage
=====

This module should be used from a computer accessible to customers.
In order to limit the risk of unfortunate/malicious actions, you should:

* **Use a dedicated Odoo account with the least possible rights**
* Configure the web browser to be in kiosk mode (cf. "Launch Firefox" section)

Those measures aren't sufficient *per se*, but should lower the risk significantly.

Launch Firefox
~~~~~~~~~~~~~~

This self-service module can be used in kiosk mode. To launch Firefox in kiosk mode, run this command::

firefox <url> -foreground --kiosk

Known issues / Roadmap
======================

* The styling is basic and the CSS should be cleaned up and improved.

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:%20base_pos_self_service_weighing%0Aversion:%2016.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
~~~~~~~

* Coop IT Easy SC

Contributors
~~~~~~~~~~~~

* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Grégoire Leeuwerck
* Vincent Van Rossem
* Carmen Bianca BAKKER
* Robin Keunen
* hugues de keyzer
* `Le Nid <https://lenid.ch>`_:

* François Kawala
* `SPP <https://la-feve.ch>`_

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-carmenbianca| image:: https://github.com/carmenbianca.png?size=40px
:target: https://github.com/carmenbianca
:alt: carmenbianca
.. |maintainer-robinkeunen| image:: https://github.com/robinkeunen.png?size=40px
:target: https://github.com/robinkeunen
:alt: robinkeunen

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

|maintainer-carmenbianca| |maintainer-robinkeunen|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions base_pos_self_service_weighing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from . import models
32 changes: 32 additions & 0 deletions base_pos_self_service_weighing/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Self-Service Weighing Base Module",
"summary": "Base module to configure a PoS as a self-service weighing station",
"version": "16.0.1.0.0",
"category": "Sales/Point of Sale",
"website": "https://github.com/OCA/pos",
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
"maintainers": [
"carmenbianca",
"robinkeunen",
],
"license": "AGPL-3",
"depends": [
"point_of_sale",
],
"data": [
"views/point_of_sale_dashboard.xml",
"views/pos_config_view.xml",
"views/res_config_settings_view.xml",
],
"assets": {
"point_of_sale.assets": [
"base_pos_self_service_weighing/static/src/css/pos.css",
"base_pos_self_service_weighing/static/src/js/**/*.js",
"base_pos_self_service_weighing/static/src/xml/**/*.xml",
],
},
}
114 changes: 114 additions & 0 deletions base_pos_self_service_weighing/i18n/base_pos_self_service_weighing.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_pos_self_service_weighing
#
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: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid "Barcode value must be positive"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid "Cannot convert a value from ${from_uom.name} to ${to_uom.name}"
msgstr ""

#. module: base_pos_self_service_weighing
#: model:ir.model,name:base_pos_self_service_weighing.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/Screens/SelfServiceWeighingScreen/SelfServiceWeighingControlButton.esm.js:0
#: code:addons/base_pos_self_service_weighing/static/src/js/Screens/SelfServiceWelcomeScreen/SelfServiceWeighingWelcomeButton.esm.js:0
#, python-format
msgid "Error"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/Screens/SelfServiceWeighingScreen/SelfServiceWeighingHomeButton.esm.js:0
#, python-format
msgid "Home"
msgstr ""

#. module: base_pos_self_service_weighing
#: model:ir.model.fields,field_description:base_pos_self_service_weighing.field_pos_config__is_self_service_weighing_station
#: model:ir.model.fields,field_description:base_pos_self_service_weighing.field_res_config_settings__pos_is_self_service_weighing_station
msgid "Is a Self-Service Weighing Station"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid "Maximum value is ${max_value}"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid "No UoM of name \"${name}\" found"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid "No barcode rule of type \"${type}\" found"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid ""
"Please install a pos_self_service_weighing_print_* module to print the label.\n"
"\n"
"Title: ${title}\n"
"Barcode: ${barcode}\n"
"Value: ${value_str}"
msgstr ""

#. module: base_pos_self_service_weighing
#: model:ir.model,name:base_pos_self_service_weighing.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/models.esm.js:0
#, python-format
msgid "Print Barcode Label"
msgstr ""

#. module: base_pos_self_service_weighing
#: model:ir.model.fields,help:base_pos_self_service_weighing.field_pos_config__is_self_service_weighing_station
#: model:ir.model.fields,help:base_pos_self_service_weighing.field_res_config_settings__pos_is_self_service_weighing_station
#: model_terms:ir.ui.view,arch_db:base_pos_self_service_weighing.pos_config_view_form
msgid "Use this PoS as a self-service weighing station"
msgstr ""

#. module: base_pos_self_service_weighing
#. odoo-javascript
#: code:addons/base_pos_self_service_weighing/static/src/js/Screens/SelfServiceWeighingScreen/SelfServiceWeighingControlButton.esm.js:0
#: code:addons/base_pos_self_service_weighing/static/src/js/Screens/SelfServiceWelcomeScreen/SelfServiceWeighingWelcomeButton.esm.js:0
#, python-format
msgid "onClick() Not Implemented"
msgstr ""
Loading
Loading