diff --git a/pms_l10n_es/__manifest__.py b/pms_l10n_es/__manifest__.py index ffbf18d52..48304201c 100644 --- a/pms_l10n_es/__manifest__.py +++ b/pms_l10n_es/__manifest__.py @@ -27,7 +27,6 @@ "data/cron_jobs.xml", "data/queue_data.xml", "data/queue_job_function_data.xml", - "data/pms_sequence.xml", "security/ir.model.access.csv", "views/pms_checkin_partner_views.xml", "views/pms_property_views.xml", diff --git a/pms_l10n_es/data/pms_sequence.xml b/pms_l10n_es/data/pms_sequence.xml deleted file mode 100644 index f88b48920..000000000 --- a/pms_l10n_es/data/pms_sequence.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - PMS L10N Traveller Report - traveller.report.wizard - 3 - 1 - 1 - - - diff --git a/pms_l10n_es/models/pms_property.py b/pms_l10n_es/models/pms_property.py index fa1476bd2..b59da5b40 100644 --- a/pms_l10n_es/models/pms_property.py +++ b/pms_l10n_es/models/pms_property.py @@ -1,7 +1,7 @@ import requests from bs4 import BeautifulSoup as bs -from odoo import fields, models, _ +from odoo import _, fields, models from odoo.exceptions import ValidationError from odoo.modules import get_module_resource @@ -82,14 +82,14 @@ class PmsProperty(models.Model): login_correct = soup.select(".cabecera2") if login_correct: message = { - "type": "ir.actions.client", - "tag": "display_notification", - "params": { - "title": _("Connection Established!"), - "message": _("Connection established succesfully"), - "sticky": False, - }, - } + "type": "ir.actions.client", + "tag": "display_notification", + "params": { + "title": _("Connection Established!"), + "message": _("Connection established succesfully"), + "sticky": False, + }, + } return message else: raise ValidationError(_("Connection could not be established")) diff --git a/pms_l10n_es/wizards/traveller_report.py b/pms_l10n_es/wizards/traveller_report.py index ca1fc0fa2..0579b89b9 100644 --- a/pms_l10n_es/wizards/traveller_report.py +++ b/pms_l10n_es/wizards/traveller_report.py @@ -201,7 +201,6 @@ class TravellerReport(models.TransientModel): raise ValidationError(errors[2].text) else: if called_from_user: - # TODO: dont show notification when cannot be logged message = { "type": "ir.actions.client", "tag": "display_notification",