mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[DEL] pms: remove sequence for sending data to GC
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record model="ir.sequence" id="seq_pms_traveller_report">
|
||||
<field name="name">PMS L10N Traveller Report</field>
|
||||
<field name="code">traveller.report.wizard</field>
|
||||
<field name="padding">3</field>
|
||||
<field name="number_next">1</field>
|
||||
<field name="number_increment">1</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -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"))
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user