Skip to content

Commit c49be08

Browse files
MaxTheWhaleLoredanaLrpz
authored andcommitted
[ADD] point_of_sale/payment_methods: add Glory cash machine doc
task-5158950 Support for Glory cash machines has been added to the POS in v19.0. This commit adds documentation on how to configure both the machine itself and the Odoo payment method. This commit also adds a 'Cash machines' parent page, as we are planning on supporting other models in the future. closes #14834 Signed-off-by: Loredana Perazzo (lrpz) <lrpz@odoo.com>
1 parent cdeed30 commit c49be08

File tree

3 files changed

+183
-11
lines changed

3 files changed

+183
-11
lines changed

content/applications/sales/point_of_sale/payment_methods.rst

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Payment methods
66

77
Configure a payment method with Odoo Point of Sale to provide customers with various payment
88
options, including cash, card payments through a :ref:`configured payment terminal
9-
<pos/terminals/configuration>`, :doc:`online payments </applications/finance/payment_providers>`,
10-
or :doc:`customer accounts <payment_methods/customer_credit>`.
9+
<pos/terminals/configuration>`, :doc:`online payments <../../finance/payment_providers>`, or
10+
:doc:`customer accounts <payment_methods/customer_credit>`.
1111

1212
To create a payment method, go to :menuselection:`Point of Sale --> Configuration --> Payment
1313
Methods`, click :guilabel:`New`, and follow the next steps:
@@ -16,12 +16,12 @@ Methods`, click :guilabel:`New`, and follow the next steps:
1616
#. Enable the following options if needed:
1717

1818
- :guilabel:`Online Payment`: To link the payment method to a :doc:`payment provider
19-
</applications/finance/payment_providers>` and enable online payments, select a provider in
19+
<../../finance/payment_providers>` and enable online payments, select a provider in
2020
the :guilabel:`Allowed Providers` field or click :icon:`fa-arrow-right` :guilabel:`Payment
2121
Providers` to install one.
2222
- :guilabel:`Identify Customer`: Force the selection of a customer during the payment.
23-
#. Select the preferred :doc:`Journal </applications/finance/accounting/get_started/journals>` to
24-
record all transactions.
23+
#. Select the preferred :doc:`Journal <../../finance/accounting/get_started/journals>` to record all
24+
transactions.
2525
#. Select the appropriate :guilabel:`Point of Sale` to enable the payment method.
2626
#. Set the :guilabel:`Integration` field to one of the following options:
2727

@@ -30,16 +30,17 @@ Methods`, click :guilabel:`New`, and follow the next steps:
3030
payments.
3131
- :guilabel:`Bank App (QR Code)`: Add at least one :ref:`bank account
3232
<accounting/journals/bank>` to the journal to enable :doc:`QR code payments
33-
</applications/sales/point_of_sale/payment_methods/qr_code_payment>` with a bank app. Select a
34-
:guilabel:`QR Code Format` in the form.
35-
- :guilabel:`Cash Machine (Glory)`: Connect a **Glory** cash machine to automate the point of
36-
sale's cash transactions.
33+
<payment_methods/qr_code_payment>` with a bank app. Select a :guilabel:`QR Code Format` in the
34+
form.
35+
- :guilabel:`Cash Machine (Glory)`: Connect a :doc:`Glory <payment_methods/cash_machines/glory>`
36+
:doc:`cash machine <payment_methods/cash_machines>` to automate the point of sale's cash
37+
transactions.
3738
#. Save.
3839

3940
.. note::
4041
- The :guilabel:`Delivery Payment` option links a payment method to online orders placed through
41-
:doc:`Urban Piper </applications/sales/point_of_sale/online_food_delivery>`. Select the
42-
appropriate :guilabel:`Delivery Provider` to associate with the payment method.
42+
:doc:`Urban Piper <online_food_delivery>`. Select the appropriate :guilabel:`Delivery Provider`
43+
to associate with the payment method.
4344
- If the Accounting app is installed, use the :guilabel:`Intermediary Account` field, if needed,
4445
to record transactions for this payment method in a specific receivable account for
4546
better traceability. Leave the field empty to use the company's default :ref:`receivable
@@ -55,10 +56,12 @@ Methods`, click :guilabel:`New`, and follow the next steps:
5556
.. seealso::
5657
- `Payment methods (video tutorial) <https://www.youtube.com/watch?v=eHr4tS8Wmss>`_
5758
- :doc:`payment_methods/terminals`
59+
- :doc:`payment_methods/cash_machines`
5860

5961
.. toctree::
6062
:titlesonly:
6163

64+
payment_methods/cash_machines
6265
payment_methods/customer_credit
6366
payment_methods/qr_code_payment
6467
payment_methods/terminals
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
:show-content:
2+
3+
=============
4+
Cash machines
5+
=============
6+
7+
Connecting and integrating a cash machine with a :ref:`POS system <pos/session-start>` enables
8+
automation of cash transactions, cash counting, and change return.
9+
10+
.. _pos/cash_machines/configuration:
11+
12+
Configuration
13+
=============
14+
15+
Configure the cash machine itself before setting it up in Odoo. Currently, Odoo supports :doc:`Glory
16+
<cash_machines/glory>` cash machines. Once the cash machine is fully set up:
17+
18+
#. Create the associated :doc:`payment method <../payment_methods>`.
19+
#. Select the POS in the :guilabel:`Point of Sale` field.
20+
21+
.. _pos/terminals/cash-machine-use:
22+
23+
Use
24+
===
25+
26+
To process a :ref:`payment <pos/sell>` with a :ref:`configured cash machine
27+
<pos/cash_machines/configuration>`, select the machine's :doc:`payment method <../payment_methods>`
28+
on the **payment screen**, then follow the instructions on the machine.
29+
30+
Once the transaction is successful, the payment is automatically validated in Point of Sale.
31+
32+
.. note::
33+
- Connection issues between Odoo and the cash machine result in transaction cancellation.
34+
- To cancel the payment request, click :guilabel:`Cancel`.
35+
36+
.. toctree::
37+
:titlesonly:
38+
39+
cash_machines/glory
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
=====
2+
Glory
3+
=====
4+
5+
**Glory** :doc:`cash machines <../cash_machines>` enable the automation of cash transactions.
6+
7+
.. note::
8+
- The integration with the Glory cash machine only supports basic functions, such as cash
9+
transactions and cash count checks.
10+
- Tasks like filling and emptying the machine must be performed directly through the cash machine
11+
interface.
12+
13+
.. _pos/glory/configuration:
14+
15+
Configuration
16+
=============
17+
18+
Cash machine settings
19+
---------------------
20+
21+
#. Power on the cash machine, which briefly displays its IP address at the bottom of the screen.
22+
Note it down for later.
23+
24+
.. note::
25+
The IP address should be formatted as `###.###.#.##` (e.g., `192.168.0.25`).
26+
27+
#. Navigate to the cash machine's homepage by entering its IP address as the URL in `HTTPS` (e.g.,
28+
`https://192.168.0.25`), and log in with your Glory credentials.
29+
#. As long as the certificate is not imported, a warning page appears when trying to access the
30+
machine's homepage. Bypass it by clicking :guilabel:`Advanced` and then :guilabel:`Proceed to
31+
[IP address] (unsafe)`.
32+
#. From the Glory homepage, go to :guilabel:`Host Configuration` and ensure the :guilabel:`Network`
33+
setting is set to :guilabel:`MANUAL`, meaning the IP address is static.
34+
#. Then, navigate to :guilabel:`SSL Configuration` and scroll down to the :guilabel:`HTTPS Server
35+
Setting` section.
36+
37+
#. In parallel, open the terminal and verify that *OpenSSL* is installed. Type `openssl` and
38+
press enter. If installed, this command displays a `help` menu listing all available OpenSSL
39+
commands. If nothing happens, `install it <https://openssl-library.org/source/>`_.
40+
#. Then, paste the following command and press `Enter` to generate and download the certificate
41+
and private key. Ensure that you replace the demo IP address with the cash machine’s actual IP
42+
address.
43+
44+
.. code-block:: bash
45+
46+
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/CN=192.168.0.25" -addext "subjectAltName = IP:192.168.0.25"
47+
48+
.. important::
49+
The self-signed SSL certificate and key pair must use the same static IP address as the
50+
cash machine.
51+
52+
#. Once the files are generated, from the :guilabel:`HTTPS Server Setting` section, upload
53+
`cert.pem` as the :guilabel:`Certificate` and `key.pem` as the :guilabel:`Private Key`.
54+
#. Go to :guilabel:`WebApp Configuration` and ensure the :guilabel:`Interface` setting from the
55+
:guilabel:`A: Nodejs Setting` section is set to :guilabel:`Enable`.
56+
#. Then, adjust the following settings depending on the POS setup:
57+
58+
- If **multiple POS** are connected to the same cash machine, go to :guilabel:`App
59+
Configuration`, scroll down to the :guilabel:`SOAP IF Setting`, and ensure :guilabel:`Session
60+
mode` and :guilabel:`Occupy mode` are both set to :guilabel:`Enable`.
61+
- If **a dedicated user** has been set up on the cash machine for Odoo, go to :guilabel:`App
62+
Configuration`, scroll down to the :guilabel:`SOAP IF Setting` section, and :guilabel:`Enable`
63+
the :guilabel:`User check` setting.
64+
#. Restart the cash machine to apply the new settings.
65+
66+
.. note::
67+
As this setup is complex and may involve advanced knowledge of Glory hardware, it is advisable to
68+
consult the Glory integration partner for configuration if there is any uncertainty.
69+
70+
Import self-signed certificates
71+
-------------------------------
72+
73+
For a long-term solution, the generated certificates must be imported into the device running the
74+
POS. The import process is heavily dependent on the :abbr:`OS (Operating System)` and the browser.
75+
76+
.. tabs::
77+
78+
.. tab:: Windows OS
79+
80+
Windows manages certificates, which means that self-signed certificates must be imported
81+
from the certification files rather than the browser. To do so,
82+
83+
#. Open the Windows File Explorer and locate the downloaded certification files.
84+
#. Right-click on the certification files and select :guilabel:`Install Certificate`.
85+
#. Specify the certificate location and select the installation scope: either the
86+
:guilabel:`Current User` only or all users (:guilabel:`Local Machine`). Then, click
87+
:guilabel:`Next`.
88+
#. On the `Certificate Store` screen, tick :guilabel:`Place all certificates in the following
89+
store`, click :guilabel:`Browse...`, and select :guilabel:`Trusted Root Certification
90+
Authorities`.
91+
#. Click :guilabel:`Finish` and accept the pop-up security window.
92+
#. Restart the computer to make sure that the changes are applied.
93+
94+
.. tab:: Linux OS
95+
96+
When using **Google Chrome**,
97+
98+
#. Open the web browser.
99+
#. Navigate to :menuselection:`Settings --> Privacy and security --> Security --> Manage
100+
certificates`.
101+
#. Go to the :guilabel:`Authorities` tab, click :guilabel:`Import`, and select the exported
102+
certification files.
103+
#. Accept all warnings and click :guilabel:`ok`.
104+
#. Restart the web browser.
105+
106+
When using **Mozilla Firefox**,
107+
108+
#. Open the web browser.
109+
#. Navigate to :menuselection:`Settings --> Privacy & Security --> Security --> View
110+
Certificates... --> Import`.
111+
#. Select the exported certification files.
112+
#. Tick the checkboxes and validate.
113+
#. Restart the web browser.
114+
115+
Payment method
116+
--------------
117+
118+
#. :ref:`Install <general/install>` the POS Glory Cash Machines module.
119+
#. :doc:`Associate a cash payment method <../../payment_methods>`:
120+
121+
- Go to :menuselection:`Point of Sale --> Configuration --> Payment Methods`. Create a new
122+
:guilabel:`Cash` payment method or update an existing payment method.
123+
- Select the associated POS in the :guilabel:`Point of Sale` field.
124+
- Select :guilabel:`Cash Machine (Glory)` in the :guilabel:`Integration` field.
125+
- Fill in the :guilabel:`Cash Machine IP` field with the IP address of the cash machine.
126+
- If the cash machine was configured to use :guilabel:`User check` in the previous section, fill
127+
in the :guilabel:`Cash Machine Username` and :guilabel:`Cash Machine Password`.
128+
129+
.. seealso::
130+
:doc:`../../payment_methods`

0 commit comments

Comments
 (0)