Skip to content

Commit

Permalink
[IMP] formating code
Browse files Browse the repository at this point in the history
  • Loading branch information
maq-adhoc committed Nov 1, 2024
1 parent 22db143 commit 03da1eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
this.env.posbus.trigger("close-popup", {
popupId: this.props.id,
response: { confirmed: false, payload: null },
response: {confirmed: false, payload: null},
});
}
_getAddProductOptions(eventTicket) {
Expand Down
3 changes: 1 addition & 2 deletions pos_event_sale/static/src/js/Screens/ProductInfoButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}
};

Expand Down
3 changes: 1 addition & 2 deletions pos_event_sale/static/src/js/models/Order.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit 03da1eb

Please sign in to comment.