Skip to content
Snippets Groups Projects
Commit 79852338 authored by Cyril VINH-TUNG's avatar Cyril VINH-TUNG Committed by Jacky (trj)
Browse files

[FIX] pos_restaurant: Print date on Bill Receipt before Payment


Steps to reproduce :
- Open a pos_restaurant session with Print Bill before Payment selected
- Add some products
- Print a Bill before Payment

Bug :
The receipt does not show the order date

Fix :
After that commit, the receipt shows the order date

Explanation :
The field date.localestring (that appears in the Order Receipt) is computed in the point_of_sale module for
the receipt after payment (in Payment Screen) but was not computed in the pos_restaurant for the receipt before payment

closes odoo/odoo#108516

X-original-commit: 85429ca3
Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent 9f7f79ab
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ odoo.define('pos_restaurant.PrintBillButton', function(require) {
async onClick() {
const order = this.env.pos.get_order();
if (order.get_orderlines().length > 0) {
order.initialize_validation_date();
this.trigger('close-popup');
await this.showTempScreen('BillScreen');
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment