diff --git a/README.md b/README.md index 379be71..d991cce 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This custom module is designed for Odoo 19 to override and customize the standar When using the Early Receipt or Bill printing feature (before payment is finalized), Odoo natively prints "Pro forma receipt". This module replaces that text with an attention-grabbing **"!!! INI ADALAH TAGIHAN SEMENTARA, BUKAN BUKTI PEMBAYARAN !!!"**. 4. **Basic Receipt Improvements:** - When printing a Basic Receipt (e.g. gift receipt without prices), this module hides the receipt header, footer, and the "Pro Forma" text. It also ensures that both the **Customer Note** and the **Internal Note** are fully visible. + When printing a Basic Receipt (e.g. gift receipt without prices), this module hides the receipt header, footer, and the "Pro Forma" text. It also ensures that both the **Customer Note** and the **Internal Note** are fully visible, and automatically filters out reward products, promotions, and coupons (lines with negative values or flagged as reward lines). 5. **Address & Email Removal:** Hides the detailed company/branch address and the company email from the receipt footer, keeping the receipt concise. diff --git a/static/src/xml/receipt_overrides.xml b/static/src/xml/receipt_overrides.xml index a3ee4d9..7bf2138 100644 --- a/static/src/xml/receipt_overrides.xml +++ b/static/src/xml/receipt_overrides.xml @@ -30,6 +30,11 @@ !props.basic_receipt + + + !props.basic_receipt || (!line.is_reward_line && line.price_unit >= 0) + +