| __pycache__ | ||
| models | ||
| static/src/overrides | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
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
- Go to Point of Sale > Configuration > Settings.
- Locate the Ojol Discount section.
- 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.
- Save the settings.
Usage
- Open a new POS Session.
- Select the Ojol pricelist.
- Add items to the cart.
- Click the custom discount button (
Rp) on the numpad. - Enter the target discount amount in the custom popup dialog and click apply.
- A negative-priced order line with the selected Ojol Discount Product will be appended to the cart.
License
Released under the LGPL-3 License.