Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][16.0] pos_payment_terminal #908

Merged
merged 98 commits into from
Dec 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
6127573
Initial check-in of the module pos_payment_terminal.
Jul 10, 2014
71fb4d9
Add dependancy on currency_iso_numeric.
Jul 10, 2014
b209f4b
pos_customer_display bugfix : new massage on deleting orderLine and f…
Jul 11, 2014
faa20a1
Fix copyright headers
Jul 11, 2014
e78fc54
pos_payment_terminal : bigger button for start transaction with touch…
Jul 20, 2014
68f9fb2
pos_payment_terminal: add missing css file
Oct 22, 2014
25c4412
Remove currency_iso_numeric (replaced by pycountry)
Oct 23, 2014
e14fe9e
Add Spanish translation by Alejandro Amador (thanks for your contribu…
Nov 17, 2014
7c8bc2f
[FIX] Vicious bug that is invisible alone, but becomes visible when u…
Dec 30, 2014
2361615
PEP8
Jan 6, 2015
54b1b3e
Add license key in __openerp__.py
yvaucher Feb 6, 2015
8b429e3
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
6059cd5
pos_payment_terminal: Add POT file, FR translation and demo data
Apr 30, 2015
ce1086e
Better XML header
Apr 30, 2015
223f7ac
pos_customer_display: Add button "Display Total to Customer" and port…
May 16, 2015
2457e07
pos_payment_terminal: smiplify JS code
alexis-via Jun 8, 2015
f14e461
FIX my previous commit: sent currency to POSbox
alexis-via Jun 12, 2015
061eff4
[FIX] bug #36 : take advantage of the recent update in the odoo codeb…
alexis-via Jul 6, 2015
6ed3e29
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
981b50a
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
31f0bed
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
1f013ab
begin of porting pos_payment_terminal to Odoo 9.0
yuntux May 17, 2016
75f0f09
overload render_paymentlines
yuntux May 17, 2016
6157e85
FIX : multiple calls to action on 'start transaction' click event
yuntux May 21, 2016
2b8f6c4
Add static/src/xml/templates.xml
yuntux Jul 10, 2016
58ed2ea
FIX crash on demo data
alexis-via Oct 10, 2016
7dd9b1c
Port pos_payment_terminal to v10
alexis-via Oct 10, 2016
4df033e
OCA Transbot updated translations from Transifex
oca-transbot Dec 17, 2016
541f44c
OCA Transbot updated translations from Transifex
oca-transbot Jan 7, 2017
6452828
OCA Transbot updated translations from Transifex
oca-transbot Jun 10, 2017
96a7370
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
369daa5
[FIX] fixes currencies with decimals <>2
Feb 9, 2018
eacefb1
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
08dafac
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
9275ee6
[UPD] Update pos_payment_terminal.pot
oca-travis Jun 22, 2018
aaf2c7e
Fix JS loading : module should only be loaded in pos
hparfr Oct 8, 2018
0df2d1a
Increment version number
hparfr Oct 8, 2018
20b8a67
[ADD] icon.png
OCA-git-bot Apr 3, 2019
8f386bf
pos_payment_terminal: receive transaction refs
andreparames Feb 9, 2018
8abe039
pos_payment_terminal: inform user of transaction status
andreparames Mar 14, 2018
5b232c1
pos_payment_terminal: use currency precision
andreparames May 3, 2018
325f859
pos_payment_terminal: auto-validate orders with mixed payments
andreparames May 3, 2018
85b352d
[FIX] pos_payment_terminal: Fix tests
rousseldenis Aug 29, 2019
0ae8adc
[UPD] Update pos_payment_terminal.pot
oca-travis Aug 29, 2019
70eeccf
Update translation files
oca-transbot Aug 29, 2019
7d84838
[MIG] pos_payment_terminal
legalsylvain Jan 17, 2020
55626d9
[MIG][12.0] pos_payment_terminal
legalsylvain Jan 18, 2020
3a66e99
Update pos_payment_terminal/static/src/js/devices.js
legalsylvain Jan 24, 2020
208b738
[REF] rename field
legalsylvain Jan 24, 2020
fb8999d
fixup! [REF] rename field
legalsylvain Jan 24, 2020
d4bf3de
fixup! fixup! [REF] rename field
legalsylvain Jan 24, 2020
d3484d7
[UPD] Update pos_payment_terminal.pot
oca-travis Jan 24, 2020
7c7103e
[UPD] README.rst
OCA-git-bot Jan 24, 2020
76a6137
Update translation files
oca-transbot Feb 11, 2020
decd51a
[UPD] Update pos_payment_terminal.pot
oca-travis Jul 20, 2020
c840432
Update translation files
oca-transbot Jul 20, 2020
3abb5b1
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
1e0be08
Update translation files
oca-transbot Aug 16, 2020
54e93cc
[IMP] pos_payment_terminal : improve display of the loading button
legalsylvain Oct 6, 2020
460d30f
[UPD] Update pos_payment_terminal.pot
oca-travis Nov 12, 2020
f625e0e
pos_payment_terminal 12.0.0.1.2
OCA-git-bot Nov 12, 2020
aba7ee1
Update translation files
oca-transbot Nov 12, 2020
f432ca8
[UPD] Update pos_payment_terminal.pot
oca-travis Nov 12, 2020
393fae6
Update translation files
oca-transbot Nov 12, 2020
5ffdebe
[IMP] pos_payment_terminal : improve the display of the button start …
legalsylvain Nov 12, 2020
3520309
[UPD] Update pos_payment_terminal.pot
oca-travis Nov 13, 2020
63b7087
pos_payment_terminal 12.0.0.1.3
OCA-git-bot Nov 13, 2020
9b1ef1c
Update translation files
oca-transbot Nov 13, 2020
a482acd
[UPD] Update pos_payment_terminal.pot
oca-travis Nov 13, 2020
8fc86f1
Update translation files
oca-transbot Nov 13, 2020
557fb8f
[MIG] pos_payment_terminal to v14
alexis-via Dec 17, 2020
ac7b8c2
pos_payment_terminal: black, isort and pre-commit stuff
alexis-via Dec 17, 2020
d64d691
pos_payment_terminal: update README and screenshots
alexis-via Dec 17, 2020
2c9a500
pos_payment_terminal: remove commented lines
alexis-via Dec 17, 2020
b0b0a29
pos_payment_terminal: fix lint issues
sbidoul Feb 16, 2021
dbb4c07
pos_payment_terminal: api conformity
sbidoul Feb 17, 2021
5bc59e6
pos_payment_terminal: reject transactions with zero amount
sbidoul Feb 17, 2021
161b52d
pos_payment_terminal: remove dead code
sbidoul Feb 17, 2021
5c2dab1
[UPD] Update pos_payment_terminal.pot
oca-travis Feb 18, 2021
498269b
[UPD] README.rst
OCA-git-bot Feb 18, 2021
1ec66f9
[FIX] pos_payment_terminal: fix error handling
sbidoul Feb 17, 2021
49b4d2b
[IMP] pos_payment_terminal: handle terminal transaction statuses
sbidoul Feb 17, 2021
1a9eb4e
[IMP] pos_payment_terminal: support multiple terminals
sbidoul Feb 17, 2021
194bde3
pos_payment_terminal: update authors
sbidoul Feb 18, 2021
80e6fe6
[FIX] pos_payment_terminal: activate proxy if oca payment terminal is…
sbidoul Feb 18, 2021
c800b15
[FIX] pos_payment_terminal: typo in js test
sbidoul Mar 4, 2021
a4bae68
[UPD] Update pos_payment_terminal.pot
oca-travis Mar 5, 2021
dfa06df
[UPD] README.rst
OCA-git-bot Mar 5, 2021
b472bb6
pos_payment_terminal 14.0.2.0.0
OCA-git-bot Mar 5, 2021
5221996
Update translation files
oca-transbot Mar 5, 2021
39c43bb
[IMP] pos_payment_terminal: Graceful cancel handling
thomaspaulb Sep 16, 2021
450f235
[FIX] pos_payment_terminal: reject cancellation
sbidoul Dec 23, 2021
e00d982
[UPD] Update pos_payment_terminal.pot
May 18, 2022
c8d9f3a
pos_payment_terminal 14.0.2.1.0
OCA-git-bot May 18, 2022
288cc04
Update translation files
oca-transbot May 18, 2022
79841e7
Translated using Weblate (Italian)
francesco-ooops Jul 4, 2022
6526751
[IMP] pos_payment_terminal: black, isort, prettier
nwinkelstraeter Dec 13, 2022
ec1e11d
[MIG] pos_payment_terminal: Migration to 16.0
nwinkelstraeter Dec 13, 2022
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
106 changes: 106 additions & 0 deletions pos_payment_terminal/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
====================
POS Payment Terminal
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.0/pos_payment_terminal
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_payment_terminal
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/14.0
:alt: Try me on Runbot

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

This module adds support for credit card reader and checks printer
in the Point of Sale.

**Table of contents**

.. contents::
:local:

Installation
============

This module is designed to be installed on the
*main Odoo server*. On the *POSbox/IoTbox*, you should install the module
*hw_x* depending on the protocol implemented in your device. Remember that the POSbox/IoTbox runs Odoo v12 (even if your Odoo server runs v13 or v14), so you should look in the 12.0 branch of the `OCA POS project <https://github.com/OCA/pos>`_ to find the *hw_x* modules.

`Ingenico <http://en.wikipedia.org/wiki/Ingenico>`
card readers for France support the Telium protocol implemented in the
*hw_telium_payment_terminal* module for the POSbox/IoTBox.

You can also consider `pywebdriver project <https://github.com/akretion/pywebdriver>`_ as an alternative to the POSbox/IoTbox.

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

* Go to *Point of Sale > Configuration > Payment Methods*, edit the
payment method corresponding to the card reader and set
the field *Use a payment terminal* to *OCA Payment Terminal*. A new field *Payment Mode* will appear, that has *Card* as defaut value. If the payment method is for Checks and you have a check printer, select *Check* instead.

.. figure:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_payment_terminal/static/description/pos_payment_method_form.png

Usage
=====

In the frontend of the POS, when you select a payment method that has a payment mode with *Use a Payment Terminal* set to *OCA Payment Terminal*, you will have an additionnal *Send* button: if you click on that button, the amount, the currency and the payment mode will be sent to the POSbox/IoTBox/pywebdriver.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_payment_terminal%0Aversion:%2014.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
~~~~~~~

* Aurélien DUMAINE
* GRAP
* Akretion
* ACSONE SA/NV

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

* Aurelien Dumaine
* Alexis de Lattre <alexis.delattre@akretion.com>
* Sylvain LE GAL (https://twitter.com/legalsylvain)

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/14.0/pos_payment_terminal>`_ 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_payment_terminal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions pos_payment_terminal/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2014-2020 Aurélien DUMAINE
# Copyrght 2015-2020 Akretion (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "POS Payment Terminal",
"version": "16.0.1.0.0",
"category": "Point Of Sale",
"summary": "Point of sale: support generic payment terminal",
"author": (
"Aurélien DUMAINE,"
"GRAP,"
"Akretion,"
"ACSONE SA/NV,"
"Odoo Community Association (OCA)"
),
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [
"views/pos_payment_method.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_payment_terminal/static/src/js/payment_terminal.js",
"pos_payment_terminal/static/src/js/models.js",
],
},
"installable": True,
}
133 changes: 133 additions & 0 deletions pos_payment_terminal/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_payment_terminal
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-01 02:01+0000\n"
"PO-Revision-Date: 2020-07-27 11:19+0000\n"
"Last-Translator: Daniel Martinez Vila <daniel.martinez@qubiq.es>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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 3.10\n"

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid "Cannot process transactions with zero or negative amount."
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields.selection,name:pos_payment_terminal.selection__pos_payment_method__oca_payment_terminal_mode__card
msgid "Card"
msgstr "Tarjeta"

#. module: pos_payment_terminal
#: model:ir.model.fields.selection,name:pos_payment_terminal.selection__pos_payment_method__oca_payment_terminal_mode__check
msgid "Check"
msgstr "Talón"

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__display_name
msgid "Display Name"
msgstr ""

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid ""
"Failed to send the amount to pay to the payment terminal. Press the red "
"button on the payment terminal and try again."
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__id
msgid "ID"
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method____last_update
msgid "Last Modified on"
msgstr ""

#. module: pos_payment_terminal
#: code:addons/pos_payment_terminal/models/pos_payment_method.py:0
#, python-format
msgid "OCA Payment Terminal"
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__oca_payment_terminal_mode
msgid "Payment Mode"
msgstr ""

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid "Payment Terminal Error"
msgstr ""

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid ""
"Please press the red button on the payment terminal to cancel the "
"transaction."
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model,name:pos_payment_terminal.model_pos_payment_method
msgid "Point of Sale Payment Methods"
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__oca_payment_terminal_id
msgid "Terminal identifier"
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields,help:pos_payment_terminal.field_pos_payment_method__oca_payment_terminal_id
msgid ""
"The identifier of the terminal as known by the hardware proxy. Leave empty "
"if the proxy has only one terminal connected."
msgstr ""

#~ msgid "A payment terminal is available on the Proxy"
#~ msgstr "Un terminal de pago está disponible en el Proxy"

#~ msgid "Journal"
#~ msgstr "Diario"

#~ msgid "Payment Terminal"
#~ msgstr "Terminal de pago"

#~ msgid "Point of Sale Configuration"
#~ msgstr "Configuración del punto de venta"

#~ msgid "Point of Sale Orders"
#~ msgstr "Pedidos de Punto de Venta"

#~ msgid "Select the payment mode sent to the payment terminal"
#~ msgstr "Seleccione la forma de pega enviada al terminal de pago"

#~ msgid "Start transaction"
#~ msgstr "Iniciar transacción"

#~ msgid "Terminal Payment Mode"
#~ msgstr "Modo de pago del terminal"

#~ msgid "pos.config"
#~ msgstr "Configuración del TPV"
107 changes: 107 additions & 0 deletions pos_payment_terminal/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_payment_terminal
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-17 08:57+0000\n"
"PO-Revision-Date: 2020-12-17 08:57+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid "Cannot process transactions with zero or negative amount."
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields.selection,name:pos_payment_terminal.selection__pos_payment_method__oca_payment_terminal_mode__card
msgid "Card"
msgstr "Carte"

#. module: pos_payment_terminal
#: model:ir.model.fields.selection,name:pos_payment_terminal.selection__pos_payment_method__oca_payment_terminal_mode__check
msgid "Check"
msgstr "Chèque"

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid ""
"Failed to send the amount to pay to the payment terminal. Press the red "
"button on the payment terminal and try again."
msgstr ""
"Échec de l'envoi du montant à payer au lecteur CB. Appuyez sur le bouton "
"rouge du lecteur CB et essayez à nouveau."

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__id
msgid "ID"
msgstr "ID"

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: pos_payment_terminal
#: code:addons/pos_payment_terminal/models/pos_payment_method.py:0
#, python-format
msgid "OCA Payment Terminal"
msgstr "Terminal de paiement OCA"

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__oca_payment_terminal_mode
msgid "Payment Mode"
msgstr "Mode de paiement"

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid "Payment Terminal Error"
msgstr "Erreur - Lecteur CB"

#. module: pos_payment_terminal
#. openerp-web
#: code:addons/pos_payment_terminal/static/src/js/payment_terminal.js:0
#, python-format
msgid ""
"Please press the red button on the payment terminal to cancel the "
"transaction."
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model,name:pos_payment_terminal.model_pos_payment_method
msgid "Point of Sale Payment Methods"
msgstr "Modes de paiement du point de vente"

#. module: pos_payment_terminal
#: model:ir.model.fields,field_description:pos_payment_terminal.field_pos_payment_method__oca_payment_terminal_id
msgid "Terminal identifier"
msgstr ""

#. module: pos_payment_terminal
#: model:ir.model.fields,help:pos_payment_terminal.field_pos_payment_method__oca_payment_terminal_id
msgid ""
"The identifier of the terminal as known by the hardware proxy. Leave empty "
"if the proxy has only one terminal connected."
msgstr ""

#~ msgid "Cannot process transactions with negative amount."
#~ msgstr "Impossible d'envoyer des montants négatifs au lecteur CB"
Loading