38 lines
1.6 KiB
Markdown
38 lines
1.6 KiB
Markdown
# 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](https://www.gnu.org/licenses/lgpl-3.0.html) License.
|