From 30d56deb82e97b813de1bf9f9bf98779278979aa Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Mon, 14 Oct 2024 16:58:17 +0500 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [ADD] portal_event_tickets --- portal_event_tickets/static/src/js/ticket_transfer.tour.js | 2 +- portal_event_tickets/tests/common.py | 4 +++- portal_event_tickets/views/portal_templates.xml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/portal_event_tickets/static/src/js/ticket_transfer.tour.js b/portal_event_tickets/static/src/js/ticket_transfer.tour.js index 8388a13..7e1194f 100644 --- a/portal_event_tickets/static/src/js/ticket_transfer.tour.js +++ b/portal_event_tickets/static/src/js/ticket_transfer.tour.js @@ -31,7 +31,7 @@ odoo.define("portal_event_tickets.ticket_transfer_tour", function (require) { }, { content: "We are redirected to /my/tickets page", - trigger: "h3:contains(Your Tickets)", + trigger: ".breadcrumb-item:contains(Tickets)", run: function () { // It's needed to don't make a click on the link }, diff --git a/portal_event_tickets/tests/common.py b/portal_event_tickets/tests/common.py index 5b30696..b28e955 100644 --- a/portal_event_tickets/tests/common.py +++ b/portal_event_tickets/tests/common.py @@ -85,7 +85,9 @@ def _create_ticket(self, ticket_type, partner, event): sale_order_line = self.env["sale.order.line"].create( { "product_id": product.id, - "price_unit": 190.50, + # we set price_unit to 0 + # to confirm registration via registration.editor + "price_unit": 0, "product_uom": self.env.ref("uom.product_uom_unit").id, "product_uom_qty": 1.0, "order_id": sale_order.id, diff --git a/portal_event_tickets/views/portal_templates.xml b/portal_event_tickets/views/portal_templates.xml index 40b8d28..d7521a4 100644 --- a/portal_event_tickets/views/portal_templates.xml +++ b/portal_event_tickets/views/portal_templates.xml @@ -41,7 +41,7 @@ > - Your Tickets + Tickets