From c1b3a425c50481e9a32d1f7423b02a4e4da96451 Mon Sep 17 00:00:00 2001 From: Martin Quinteros Date: Tue, 20 Aug 2024 15:37:25 -0300 Subject: [PATCH] [IMP] formating code --- .../src/js/Popups/EventTicketsPopup/EventTicketsPopup.js | 6 +++--- pos_event_sale/static/src/js/Screens/ProductInfoButton.js | 3 +-- pos_event_sale/static/src/js/models/Order.js | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pos_event_sale/static/src/js/Popups/EventTicketsPopup/EventTicketsPopup.js b/pos_event_sale/static/src/js/Popups/EventTicketsPopup/EventTicketsPopup.js index cae078309f..662bbfbdb5 100644 --- a/pos_event_sale/static/src/js/Popups/EventTicketsPopup/EventTicketsPopup.js +++ b/pos_event_sale/static/src/js/Popups/EventTicketsPopup/EventTicketsPopup.js @@ -28,10 +28,10 @@ odoo.define("pos_event_sale.EventTicketsPopup", function (require) { get currentOrder() { return this.env.pos.get_order(); } - backToOrder(event){ - this.env.posbus.trigger('close-popup', { + backToOrder(event) { + this.env.posbus.trigger("close-popup", { popupId: this.props.id, - response: { confirmed: false, payload: null }, + response: {confirmed: false, payload: null}, }); } _getAddProductOptions(eventTicket) { diff --git a/pos_event_sale/static/src/js/Screens/ProductInfoButton.js b/pos_event_sale/static/src/js/Screens/ProductInfoButton.js index 61572f3937..a56889bcad 100644 --- a/pos_event_sale/static/src/js/Screens/ProductInfoButton.js +++ b/pos_event_sale/static/src/js/Screens/ProductInfoButton.js @@ -10,12 +10,11 @@ odoo.define("pos_event_sale.ProductInfoButton", function (require) { async onClick() { const orderline = this.env.pos.get_order().get_selected_orderline(); if (orderline) { - if (orderline.get_product().detailed_type == 'event'){ + if (orderline.get_product().detailed_type == "event") { return; } } return super.onClick(); - } }; diff --git a/pos_event_sale/static/src/js/models/Order.js b/pos_event_sale/static/src/js/models/Order.js index a23537992f..59ec3376b3 100644 --- a/pos_event_sale/static/src/js/models/Order.js +++ b/pos_event_sale/static/src/js/models/Order.js @@ -9,8 +9,7 @@ odoo.define("pos_event_sale.Order", function (require) { const core = require("web.core"); const _t = core._t; const Registries = require("point_of_sale.Registries"); - var { Order } = require('point_of_sale.models'); - + var {Order} = require("point_of_sale.models"); // Extend the Pos global state to load events const PosEventSaleOrder = (Order) =>