The manual check told the reader to tell two fixes apart by the browser console, but the `catch` of the base module has no error binding and never logs: following it shows an empty console, which is exactly why the current failure could not be diagnosed on site. Point at pos_payment_method_cashdro_flow_fix instead, which makes the errors visible and covers the payment flow these three fixes do not. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
23 lines
1.2 KiB
ReStructuredText
23 lines
1.2 KiB
ReStructuredText
There is nothing to configure: installing the module is enough.
|
|
|
|
To check the three fixes on a PoS with a CashDro terminal:
|
|
|
|
#. Open a PoS session, add a product and go to the payment screen.
|
|
#. Select the CashDro payment method. The payment line must show **0**, not the
|
|
due amount (fix 2).
|
|
#. The drawer must start the operation and ask for the amount, instead of the
|
|
*"An error occurred while connecting to the cashdro"* dialog (fixes 1 and 3).
|
|
|
|
These three fixes are not enough on their own: the payment flow of the base
|
|
module is broken on 18.0 for reasons of its own, and it hides every failure —
|
|
these ones included — behind that same dialog, without logging anything.
|
|
Install ``pos_payment_method_cashdro_flow_fix`` as well; its ``USAGE`` explains
|
|
how to read what actually went wrong.
|
|
|
|
The Python side is covered by the tests. The base module lives outside this
|
|
repo, so the OCA sources have to be on the addons path (mounted by
|
|
``docker-compose.yml`` from ``ODOO_SRC``, set in your local ``.env``)::
|
|
|
|
docker-compose run --rm odoo odoo -c /etc/odoo/odoo.conf \
|
|
--addons-path=/mnt/extra-addons,/mnt/oca/pos,/usr/lib/python3/dist-packages/odoo/addons \
|
|
-d odoo -u pos_payment_method_cashdro_fix --test-enable --stop-after-init
|