Update Dinein method

This commit is contained in:
Abdul Aziz Amrullah 2026-05-21 10:48:32 +07:00
parent 1afc155637
commit fc521c7b2f
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
__psycache__

View File

@ -3,7 +3,7 @@
'version': '1.0', 'version': '1.0',
'category': 'Point of Sale', 'category': 'Point of Sale',
'summary': 'Export POS orders to BC Excel format', 'summary': 'Export POS orders to BC Excel format',
'author': 'Aziz', 'author': 'Abdul Aziz Amrullah',
'description': """ 'description': """
This module adds a wizard in the POS backend to export POS Orders This module adds a wizard in the POS backend to export POS Orders
into a specific BC Excel format ("MIE MAPAN INVOICES"). into a specific BC Excel format ("MIE MAPAN INVOICES").

View File

@ -107,8 +107,8 @@ class PosExportBcWizard(models.TransientModel):
payment_methods = ', '.join(order.payment_ids.mapped('payment_method_id.name')) payment_methods = ', '.join(order.payment_ids.mapped('payment_method_id.name'))
note = order.note if 'note' in order._fields else '' note = order.note if 'note' in order._fields else ''
# dinein = 'dinein' if table else 'takeaway' # dinein = 'dinein' if table else 'takeaway'
preset = order.preset_id.name # preset = order.preset_id.name
if "dine" in preset.lower(): if table <= 60:
dinein = "dinein" dinein = "dinein"
else: else:
dinein = "takeaway" dinein = "takeaway"