From 3e2c5f0289190e65746a111a90b997eec3ef8bcc Mon Sep 17 00:00:00 2001 From: Anna Janiszewska Date: Tue, 31 Jan 2023 11:00:18 +0100 Subject: [PATCH] fixup! [MIG] pingen: Migration to 16.0 --- pingen/models/base_config_settings.py | 28 +++++++++++---- pingen/views/base_config_settings.xml | 50 +++++++++++++++++++-------- pingen/views/pingen_document_view.xml | 9 +++-- 3 files changed, 62 insertions(+), 25 deletions(-) diff --git a/pingen/models/base_config_settings.py b/pingen/models/base_config_settings.py index 60ec128c392..0ac91437e0c 100644 --- a/pingen/models/base_config_settings.py +++ b/pingen/models/base_config_settings.py @@ -3,11 +3,27 @@ from odoo import fields, models -class BaseConfigSettings(models.TransientModel): +class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" - pingen_clientid = fields.Char(related="company_id.pingen_clientid") - pingen_client_secretid = fields.Char(related="company_id.pingen_client_secretid") - pingen_organization = fields.Char(related="company_id.pingen_organization") - pingen_webhook_secret = fields.Char(related="company_id.pingen_webhook_secret") - pingen_staging = fields.Boolean(related="company_id.pingen_staging") + pingen_clientid = fields.Char( + string="Pingen Client ID", related="company_id.pingen_clientid", readonly=False + ) + pingen_client_secretid = fields.Char( + string="Pingen Client Secret ID", + related="company_id.pingen_client_secretid", + readonly=False, + ) + pingen_organization = fields.Char( + string="Pingen organization", + related="company_id.pingen_organization", + readonly=False, + ) + pingen_webhook_secret = fields.Char( + string="Pingen webhook secret", + related="company_id.pingen_webhook_secret", + readonly=False, + ) + pingen_staging = fields.Boolean( + string="Pingen Staging", related="company_id.pingen_staging", readonly=False + ) diff --git a/pingen/views/base_config_settings.xml b/pingen/views/base_config_settings.xml index f9f31bf40c0..538d389920b 100644 --- a/pingen/views/base_config_settings.xml +++ b/pingen/views/base_config_settings.xml @@ -5,20 +5,42 @@ res.config.settings - -
-
- - - - - + +

Pingen

+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pingen/views/pingen_document_view.xml b/pingen/views/pingen_document_view.xml index c6d9aef1683..9494ca1f916 100644 --- a/pingen/views/pingen_document_view.xml +++ b/pingen/views/pingen_document_view.xml @@ -53,7 +53,7 @@ string="Update the letter's informations" icon="fa-refresh" /> - search - +