mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[MIG] pingen: Migration to 16.0
Standard migration, incl. changes proposed in https://github.com/OCA/report-print-send/pull/290/ Add unit test.
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
# Copyright 2018 Camptocamp SA
|
||||
# Copyright 2012-2023 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class BaseConfigSettings(models.TransientModel):
|
||||
_inherit = "base.config.settings"
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user