| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
| Lines of code | 369 |
| Technical Name |
nz_pos_swipe_delete |
| License | LGPL-3 |
| Website | https://www.nezam.co |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
| Lines of code | 369 |
| Technical Name |
nz_pos_swipe_delete |
| License | LGPL-3 |
| Website | https://www.nezam.co |
| Versions | 18.0 19.0 |
NZ Solutions Apps for Odoo
POS Swipe to Delete Order Line — Odoo 19
Swipe order lines left to delete them — just like dismissing a notification on your phone. A sleek, touch-friendly gesture that makes POS order management faster and more intuitive for cashiers on tablets and touchscreens.
What does this module provide?
This module adds a natural swipe-to-delete gesture to POS order lines in Odoo 19. Cashiers can drag any order line to the left to reveal a delete indicator, then release to remove the line — exactly like swiping away a phone notification. The gesture works with both touch and mouse, includes a smooth slide-out animation, and respects Odoo's combo-line logic (swiping a combo child deletes the parent). If the swipe distance is less than 35 % of the line width, the line snaps back to its original position. No configuration is needed — install and start swiping.
KEY HIGHLIGHTS
Swipe Left to Delete
Drag any order line to the left to reveal the delete background. Past the 35 % threshold, the line slides off and is removed from the order automatically.
Touch & Mouse Support
Uses the Pointer Events API to work seamlessly on tablets, touchscreens, and desktop mice. No separate handling for touch vs. click — one codebase covers all input devices.
Snap-Back Animation
If the cashier swipes less than 35 % of the line's width, the order line springs back smoothly to its original position with an elastic easing curve. Selection state is preserved.
Delete Background Indicator
A gradient delete background with a trash icon and "DELETE" label is revealed behind the order line as you swipe. The icon scales up once you pass the delete threshold — clear visual feedback.
Combo-Line Aware
Swiping a combo product child automatically deletes the parent combo line. Combo children themselves are not individually swipeable, following Odoo's standard POS behaviour.
Zero Configuration
Install the module and it works immediately. No settings, no admin setup. Every POS session gets the swipe gesture on every order line out of the box.
1) Swiping an Order Line — Delete Background Revealed
As the cashier swipes an order line to the left, the line slides over to reveal a red delete background with a trash icon and "DELETE" label. The further you swipe, the more opaque the background becomes — providing clear visual feedback on how far you need to go.

2) Snap-Back — Swipe Cancelled
If the cashier swipes less than 35% of the line width and releases, the line springs back to its original position with a silky ease-out animation. The delete background fades out and the line returns exactly as it was — no changes to the order.

3) Mouse Drag — Desktop Support & Tablet Touchscreen — Native Feel
The swipe gesture works with a mouse click and drag on desktop computers too — not just touchscreens. Click and hold on any order line, then drag left to reveal the delete background. This makes the feature useful for all POS hardware setups.
On tablets and touchscreens, the swipe feels completely native — like swiping a notification on your phone. Vertical scrolling is not interrupted: the module detects horizontal intent before activating the swipe. Accidental taps and vertical scrolls pass through normally.

4) Multiple Lines — Order After Deletion
After swiping and deleting a line, the remaining order lines reflow automatically. The order total updates instantly to reflect the removed product. The next line is selected automatically if the deleted line was the active one.

5) Combo Product Lines — Smart Handling
Combo child products (part of a combo meal or bundle) cannot be swiped individually. If a combo child is swiped, the module automatically deletes the entire parent combo line and all its children together — matching standard Odoo POS combo behaviour.

Does this work on touchscreen tablets?
Yes. The module uses the Pointer Events API, which handles touch, pen, and mouse input with a single set of event handlers. On tablets, the swipe feels just like dismissing a notification on your phone.
Can I still scroll the order list vertically?
Absolutely. The module uses intent detection — if your finger moves more vertically than horizontally at the start of the gesture, the swipe is cancelled and normal vertical scrolling takes over. Only clearly horizontal drags activate the swipe.
What happens if I swipe just a little?
If you swipe less than 35% of the line width, the order line springs back to its original position with a smooth animation. The product is not deleted and the line's selected state is preserved.
Does this work with combo product lines?
Yes. Combo child lines are not individually swipeable — swiping a combo child deletes the entire parent combo line and all of its children, matching standard Odoo POS behaviour.
Will swiping interfere with clicking or selecting a line?
No. The swipe only activates after 12px of horizontal movement. Normal taps and clicks pass through to Odoo's standard click and long-press handlers. During a swipe, the module sends a synthetic event to cancel the timed-press so it doesn't fire.
Can I swipe right to undo a deletion?
Currently, only left-swipe is supported (for deletion). Right-swipe is ignored. Once a line is deleted, you would add the product back to the order as usual.
Does this module require any configuration?
No. Install the module and the swipe gesture is available in every POS session immediately. There are no settings to enable or configure.
Which Odoo editions and deployment modes are supported?
The module is compatible with Odoo 19 Community and Enterprise on On-Premise, Odoo Online, and Odoo.sh. It depends only on the Point of Sale module.
Version 19.0.1.0.0
Initial Release- Swipe-to-delete gesture for POS order lines
- Touch and mouse support via Pointer Events API
- Smooth slide-out animation on deletion
- Elastic snap-back animation on cancelled swipe
- Gradient delete background with trash icon and label
- Threshold feedback — icon scales up past 35% swipe
- Vertical scroll intent detection — no scroll interference
- useTimedPress bypass during active swipe
- Combo-line deletion support (parent + children)
- Clean DOM recycling to prevent stale visual states
- Odoo 19 Community & Enterprise support
Please log in to comment on this module