From fc521c7b2f852ef36061dfe6b34bae03284475d8 Mon Sep 17 00:00:00 2001 From: Abdul Aziz Amrullah Date: Thu, 21 May 2026 10:48:32 +0700 Subject: [PATCH] Update Dinein method --- .gitignore | 1 + __manifest__.py | 2 +- wizard/pos_export_bc_wizard.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a84625b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__psycache__ \ No newline at end of file diff --git a/__manifest__.py b/__manifest__.py index eeaac30..dab82d1 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -3,7 +3,7 @@ 'version': '1.0', 'category': 'Point of Sale', 'summary': 'Export POS orders to BC Excel format', - 'author': 'Aziz', + 'author': 'Abdul Aziz Amrullah', 'description': """ This module adds a wizard in the POS backend to export POS Orders into a specific BC Excel format ("MIE MAPAN INVOICES"). diff --git a/wizard/pos_export_bc_wizard.py b/wizard/pos_export_bc_wizard.py index 55093c1..b2fd0e8 100644 --- a/wizard/pos_export_bc_wizard.py +++ b/wizard/pos_export_bc_wizard.py @@ -107,8 +107,8 @@ class PosExportBcWizard(models.TransientModel): payment_methods = ', '.join(order.payment_ids.mapped('payment_method_id.name')) note = order.note if 'note' in order._fields else '' # dinein = 'dinein' if table else 'takeaway' - preset = order.preset_id.name - if "dine" in preset.lower(): + # preset = order.preset_id.name + if table <= 60: dinein = "dinein" else: dinein = "takeaway"