Go to file
2026-06-15 22:27:00 +07:00
__pycache__ first commit 2026-05-22 22:10:58 +07:00
models fix: update Ojol discount calculation to use priceIncl and correctly handle tax inclusion in POS order lines 2026-06-15 16:48:09 +07:00
static/src/overrides feat: add special_mode total_included to POS order line creation 2026-06-15 22:27:00 +07:00
views first commit 2026-05-22 22:10:58 +07:00
__init__.py first commit 2026-05-22 22:10:58 +07:00
__manifest__.py first commit 2026-05-22 22:10:58 +07:00
.gitignore first commit 2026-05-22 22:10:58 +07:00
README.md first commit 2026-05-22 22:10:58 +07:00

POS Ojol Discount Amount

Adds a custom global discount line workflow tailored for Ojol (online delivery apps like GoFood, GrabFood, ShopeeFood) in Odoo 19 Point of Sale.

Features

  • Pricelist Integration: Uses Ojol's specific menu pricing when active.
  • Global Order Discount: Allows the cashier to apply a single, global order-level discount amount via a custom dialog (by pressing the discount/Rp button).
  • Automated Discount Line: Generates a single negative-amount "Diskon Ojol" service line that scales across your order.
  • Configurable Per POS Config: Set a specific discount product per POS configuration in the settings interface.
  • Robust Field & Model Protection: Seamlessly loads all necessary relational schemas (company_id, etc.) and handles special service product templates, preventing initialization crashes in POS.

Configuration

  1. Go to Point of Sale > Configuration > Settings.
  2. Locate the Ojol Discount section.
  3. Select or create an Ojol Discount Product.
    • Note: This product should be a Service product with the same tax configuration as your menu items to ensure correct tax calculations.
  4. Save the settings.

Usage

  1. Open a new POS Session.
  2. Select the Ojol pricelist.
  3. Add items to the cart.
  4. Click the custom discount button (Rp) on the numpad.
  5. Enter the target discount amount in the custom popup dialog and click apply.
  6. A negative-priced order line with the selected Ojol Discount Product will be appended to the cart.

License

Released under the LGPL-3 License.