diff --git a/portal_event_tickets/__manifest__.py b/portal_event_tickets/__manifest__.py
index 77e030b..bf2ca1a 100644
--- a/portal_event_tickets/__manifest__.py
+++ b/portal_event_tickets/__manifest__.py
@@ -20,7 +20,7 @@
"views/event_registration.xml",
"views/event_event.xml",
"data/mail_template_data.xml",
- "views/assets.xml"
+ "views/assets.xml",
],
"qweb": [],
"demo": ["data/res_users_demo.xml"],
diff --git a/portal_event_tickets/static/src/js/portal.js b/portal_event_tickets/static/src/js/portal.js
index e7bffb2..c8491cc 100644
--- a/portal_event_tickets/static/src/js/portal.js
+++ b/portal_event_tickets/static/src/js/portal.js
@@ -1,34 +1,36 @@
-odoo.define('portal_event_tickets.portal', function (require) {
- 'use strict';
+odoo.define("portal_event_tickets.portal", function (require) {
+ "use strict";
- var publicWidget = require('web.public.widget');
+ var publicWidget = require("web.public.widget");
publicWidget.registry.transferTicketWidget = publicWidget.Widget.extend({
- selector: '#transfer_ticket',
+ selector: "#transfer_ticket",
start: function () {
var def = this._super.apply(this, arguments);
var event_name = this.$el.data("event-name");
- var $modal = $('#modal_attendees_registration');
+ var $modal = $("#modal_attendees_registration");
- /* show form inline */
- $modal.find('form').attr('action', '/my/tickets/transfer/receive');
- $modal.removeClass('modal fade');
+ /* Show form inline */
+ $modal.find("form").attr("action", "/my/tickets/transfer/receive");
+ $modal.removeClass("modal fade");
- /* remove Cancel button; update title */
- var $submit = $modal.find('[type=submit]');
+ /* Remove Cancel button; update title */
+ var $submit = $modal.find("[type=submit]");
$submit.parent().empty().append($submit);
- $submit.text('Confirm');
+ $submit.text("Confirm");
- /* remove Close button */
- $modal.find('.close').remove();
+ /* Remove Close button */
+ $modal.find(".close").remove();
- /* make email non-editable */
- $modal.find('[name=1-email]').attr('disabled', '1');
+ /* Make email non-editable */
+ $modal.find("[name=1-email]").attr("disabled", "1");
- /* update title */
- $modal.find('h4.modal-title').html('Receive the ticket for ' + event_name + '');
+ /* Update title */
+ $modal
+ .find("h4.modal-title")
+ .html("Receive the ticket for " + event_name + "");
return def;
},
});
diff --git a/portal_event_tickets/views/assets.xml b/portal_event_tickets/views/assets.xml
index b15b255..ef6ecad 100644
--- a/portal_event_tickets/views/assets.xml
+++ b/portal_event_tickets/views/assets.xml
@@ -2,7 +2,10 @@
-
+
diff --git a/portal_event_tickets/views/portal_templates.xml b/portal_event_tickets/views/portal_templates.xml
index d7521a4..91b4e97 100644
--- a/portal_event_tickets/views/portal_templates.xml
+++ b/portal_event_tickets/views/portal_templates.xml
@@ -336,7 +336,7 @@
name="transfer_ticket"
t-att-value="transfer_ticket.id"
type="hidden"
- />
+ />