Commit 59273361 by François C.

Fix oder => order syntax

parent e46288b7
...@@ -14,8 +14,8 @@ odoo.define("pos_meal_voucher.screens", function (require) { ...@@ -14,8 +14,8 @@ odoo.define("pos_meal_voucher.screens", function (require) {
screens.ScreenWidget.include({ screens.ScreenWidget.include({
barcode_meal_voucher_payment_action: function (code) { barcode_meal_voucher_payment_action: function (code) {
var oder = this.pos.get_order(); var order = this.pos.get_order();
if(!oder.paper_meal_vouche_number_already_used(code.code)){ if(!order.paper_meal_vouche_number_already_used(code.code)){
// Display the payment screen, if it is not the current one. // Display the payment screen, if it is not the current one.
if (this.pos.gui.current_screen.template !== "PaymentScreenWidget"){ if (this.pos.gui.current_screen.template !== "PaymentScreenWidget"){
this.gui.show_screen("payment"); this.gui.show_screen("payment");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment