handle optional POS config in order setup and update equal split button placement

This commit is contained in:
Alaguraj0361 2026-06-13 17:18:07 +05:30
parent c29a74a41b
commit bff3db82de
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ patch(Order.prototype, {
setup(_defaultObj, options) {
super.setup(...arguments);
// Initialize with POS config defaults
const config = this.pos.config;
const config = this.pos?.config || {};
this.order_source = config.default_order_source || 'walk_in';
this.fulfilment_type = config.default_fulfilment_type || 'dine_in';
this.delivery_street = '';

View File

@ -69,7 +69,7 @@
t-inherit="pos_restaurant.SplitBillScreen"
t-inherit-mode="extension"
owl="1">
<xpath expr="//div[hasclass('split-bill-screen')]" position="prepend">
<xpath expr="//div[hasclass('top-content')]" position="before">
<div class="equal-split-toggle-bar d-flex align-items-center justify-content-between px-3 py-2 border-bottom">
<span class="fw-semibold text-muted small">
<i class="fa fa-cut me-1"/>Split By Item