[ADD]pms_api_rest: PMS API Client conexion data

This commit is contained in:
Darío Lodeiros
2024-02-26 09:51:14 +01:00
parent 1980224512
commit 344f53d6a3
6 changed files with 121 additions and 12 deletions

View File

@@ -21,11 +21,26 @@ class ResUsers(models.Model):
store=True,
readonly=False,
)
pms_api_client = fields.Boolean(
string="PMS API Client",
help="PMS API Client",
)
url_endpoint_prices = fields.Char(
string="URL Endpoint Prices",
help="URL Endpoint Prices",
)
url_endpoint_availability = fields.Char(
string="URL Endpoint Availability",
help="URL Endpoint Availability",
)
url_endpoint_rules = fields.Char(
string="URL Endpoint Rules",
help="URL Endpoint Rules",
)
external_public_token = fields.Char(
string="External Public Token",
help="External Public Token",
)
def _get_default_avail_rule_fields(self):
default_avail_rule_fields = self.env["ir.model.fields"].search(