Update readme.md

This commit is contained in:
Abdul Aziz Amrullah 2026-05-22 13:11:54 +07:00
parent b24f338513
commit be1d1ef25c
2 changed files with 7 additions and 6 deletions

View File

@ -12,11 +12,11 @@ This is a custom Odoo 19 module designed specifically to export Point of Sale (P
- The module automatically detects standard positive orders and negative return orders.
- It separates them dynamically into two distinct sheets within the same workbook: **"Invoice"** (for orders with a total >= 0) and **"Refund"** (for orders with a total < 0).
3. **Custom "Dinein" vs "Takeaway" Logic**
- Automatically determines if an order is for Dine-in or Takeaway based on the assigned POS table number.
- If the assigned table number is `<= 60`, the system explicitly records it as `"dinein"`.
- If the table number is `>= 61` (or if no table is assigned), the system automatically records it as `"takeaway"`.
- Strips the display name to cleanly export just the actual integer Table Number.
3. **Custom "Dinein" vs "Takeaway" Logic & Naming Fallbacks**
- Automatically determines if an order is for Dine-in or Takeaway based on whether a POS table is assigned.
- If a table is assigned, the system explicitly records it as `"dinein"`.
- If no table is assigned, the system automatically records it as `"takeaway"`.
- The **Table/Customer** column intelligently uses fallbacks: it prioritizes the exact table number (stripping the floor name), falls back to the floating order name (for takeaways), and finally falls back to the customer's name.
4. **Integration with Odoo Studio Custom Fields**
- Specifically configured to pull SKU values from a custom Odoo Studio product field (`x_studio_popcorn_sku`), seamlessly bridging standard Point of Sale code with codeless customizations.

View File

@ -11,7 +11,8 @@
Key Features:
- Order-level row aggregation for totals, taxes, and payments.
- Splits data dynamically into 'Invoice' (positive) and 'Refund' (negative) sheets.
- Calculates 'Dinein' and 'Takeaway' explicitly based on table numbers.
- Calculates 'Dinein' and 'Takeaway' explicitly based on whether a table is assigned.
- Intelligent fallback for the 'Table/Customer' column prioritizes table number, then floating order name, and finally customer name.
- Integrates with Odoo Studio custom field 'x_studio_popcorn_sku' for product mapping.
- Text-based date formatting to prevent spreadsheet auto-format issues.
""",