custom_receipt_header.js
/** @odoo-module */
import { patch } from "@web/core/utils/patch";
import { Order } from "@point_of_sale/app/store/models";
import { ReceiptScreen } from "@point_of_sale/app/screens/receipt_screen/receipt_screen";
import { onWillUnmount } from "@odoo/owl";
import { FloorScreen } from "@pos_restaurant/app/floor_screen/floor_screen";
patch(Order.prototype, {
export_for_printing() {
const result = super.export_for_printing(...arguments);
result.headerData = {
...this.pos.getReceiptHeaderData(),
date_order : this.date_order,
}
return result;
},
})
code standart in pos_restaurant not active when i using custom_receipt_header.js