Skip to content

[18.0][MIG] pos_payment_terminal: Migration to 18.0#1474

Open
P-H-Phuc wants to merge 86 commits intoOCA:18.0from
P-H-Phuc:18.0-mig-pos_payment_terminal
Open

[18.0][MIG] pos_payment_terminal: Migration to 18.0#1474
P-H-Phuc wants to merge 86 commits intoOCA:18.0from
P-H-Phuc:18.0-mig-pos_payment_terminal

Conversation

@P-H-Phuc
Copy link

@P-H-Phuc P-H-Phuc commented Jan 22, 2026

Migration to 18.0

UPDATED

  • Refactor js file
  • Remove pos_session.py:
    • _loader_params_pos_payment_method is deprecated, use _load_pos_data_fields in pos.payment.method model.
  • Using register_payment_method instead of.

NEW FEATURES

  • Add "OCA Payment Terminal" field to use the Proxy.
  • Add "Hide Back Button" field to prevent from returning to basket from payment screen when a payment line exists.
  • Add "Fast Payment" field to auto send request to the terminal.

CONFIGUATION

  • Go to Point of Sale > Configuration > Payment Methods
image
  • Go to Point of Sale > Configuration > Settings, add payment method to PoS and config IoT Box
2025-12-22_17-25 image

ISSUE

Auélien DUMAINE and others added 30 commits November 26, 2025 10:16
pos_customer_display bugfix : new massage on deleting orderLine and fixing unit_price computation on adding orderLine

Fix copyright headers
PEP8 stuff
pos_customer_display: FIX JS code and make it more robust
Adapt JS code of pos_payment_terminal
Some cleanup
…tion !)

Move CSS definition from pos_payment_terminal_view.xml to pos_payment_terminal.xml
Small cleanups
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
… to new API

pos_payment_terminal: code cleanup
Move description from __openerp__.py to README.rst
Update demo data

FIX my previous commit: sent currency to POSbox

[FIX] bug OCA#36 : take advantage of the recent update in the odoo codebase to properly get the 'name' of the currency
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

[FIX] fixes currencies with decimals <>2
Fix indentation

Increment version number

[ADD] icon.png
Provide a mechanism to send the order UID to the payment terminal,
which can then pass the transaction reference generated by the
payment provider back to Odoo, and which is then added to the
order payment lines. This allows their subsequent reconciliation.
The order is also automatically validated when the payment
finishes.
sbidoul and others added 30 commits November 27, 2025 15:20
Have send_payment_request return a promise as requested by the
documentation. This open the door to handling the transaction status
reported by the terminal driver asynchronously.

Also, catch errors when sending the transaction start command.
pos.proxy.message does not raise a proper error apparently,
so we can't access error.stack.
… used

Without this, the driver proxy would only activate if another device
is enabled in the POS config (such as a printer or customer display).
This prevented using a configuration where the oca payment terminal
is the only connected device.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-14.0/pos-14.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_payment_terminal/
Co-authored-by: Tom Blauwendraat <tom@sunflowerweb.nl>
Since we can't cancel the transaction, we return a rejected
promise. The user should cancel manually which will
effectively free the transaction and let the user delete it.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-14.0/pos-14.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_payment_terminal/
Currently translated at 21.4% (3 of 14 strings)

Translation: pos-14.0/pos-14.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_payment_terminal/it/
- Moved asset definiton to manifest
- pos.proxy was moved to pos.env.proxy
- Adapted models.js to new class structure of point_of_sale.models

[UPD] Update pos_payment_terminal.pot

[UPD] README.rst
Translated using Weblate (Italian)

Currently translated at 100.0% (14 of 14 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (14 of 14 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/it/

Translated using Weblate (Spanish)

Currently translated at 28.5% (4 of 14 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/es/

Translated using Weblate (Italian)

Currently translated at 100.0% (14 of 14 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/it/

Translated using Weblate (Spanish)

Currently translated at 100.0% (14 of 14 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/es/

[UPD] README.rst
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/
Currently translated at 100.0% (12 of 12 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/es/

Translated using Weblate (Italian)

Currently translated at 100.0% (12 of 12 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/it/

[FIX] eslint error 'no-shadow' in all modules

[FIX] eslint error 'eqeqeq' in all modules
… the proxy + raise an error when its not properly configured

[UPD] Update pos_payment_terminal.pot

[BOT] post-merge updates
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/

Translated using Weblate (Italian)

Currently translated at 100.0% (13 of 13 strings)

Translation: pos-16.0/pos-16.0-pos_payment_terminal
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_terminal/it/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.