Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions server_environment_iap/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
=================================================
IAP Account configuration with server_environment
=================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9d3c9e32d2ac9576d0f6df3885d7d3f201f0883a9e7e876359b55f625f59f52f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github
:target: https://github.com/OCA/server-env/tree/16.0/server_environment_iap
:alt: OCA/server-env
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment_iap
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-env&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to configure the IAP Accounts
using the `server_environment` mechanism: you can then have different
IAP Accounts for the production and the test environment.

**Table of contents**

.. contents::
:local:

Configuration
=============

With this module installed, the IAP Accounts can be configured
in the `server_environment_files` module, or in the environment variable ``SERVER_ENV_CONFIG``
and/or ``SERVER_ENV_CONFIG_SECRET``. See the documentation of `server_environment` for
more information.

Known issues / Roadmap
======================

* Due to the special nature of this addon, you cannot test it on the OCA
runbot.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-env/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-env/issues/new?body=module:%20server_environment_iap%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

* Maksym Yankin <maksym.yankin@camptocamp.com> (https://https://www.camptocamp.com)

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-env <https://github.com/OCA/server-env/tree/16.0/server_environment_iap>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions server_environment_iap/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
13 changes: 13 additions & 0 deletions server_environment_iap/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "IAP Account configuration with server_environment",
"summary": "Configure IAP Account with server_environment_files",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-env",
"depends": ["iap", "server_environment"],
"data": ["views/iap_views.xml"],
}
52 changes: 52 additions & 0 deletions server_environment_iap/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * server_environment_iap
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-03-14 15:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.2\n"

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: server_environment_iap
#: model:ir.model,name:server_environment_iap.model_iap_account
msgid "IAP Account"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__id
msgid "ID"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account____last_update
msgid "Last Modified on"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__server_env_defaults
msgid "Server Env Defaults"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__tech_name
msgid "Tech Name"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,help:server_environment_iap.field_iap_account__tech_name
msgid "Unique name for technical purposes. Eg: server env keys."
msgstr ""
49 changes: 49 additions & 0 deletions server_environment_iap/i18n/server_environment_iap.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * server_environment_iap
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__display_name
msgid "Display Name"
msgstr ""

#. module: server_environment_iap
#: model:ir.model,name:server_environment_iap.model_iap_account
msgid "IAP Account"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__id
msgid "ID"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account____last_update
msgid "Last Modified on"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__server_env_defaults
msgid "Server Env Defaults"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,field_description:server_environment_iap.field_iap_account__tech_name
msgid "Tech Name"
msgstr ""

#. module: server_environment_iap
#: model:ir.model.fields,help:server_environment_iap.field_iap_account__tech_name
msgid "Unique name for technical purposes. Eg: server env keys."
msgstr ""
1 change: 1 addition & 0 deletions server_environment_iap/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import iap_account
31 changes: 31 additions & 0 deletions server_environment_iap/models/iap_account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2021 Camptocamp SA <https://www.camptocamp.com/>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import api, models


class IapAccount(models.Model):
_name = "iap.account"
_inherit = [
"iap.account",
"server.env.techname.mixin",
"server.env.mixin",
]

@property
def _server_env_fields(self):
base_fields = super()._server_env_fields
iap_fields = {
"service_name": {},
"account_token": {},
}
iap_fields.update(base_fields)
return iap_fields

@api.model
def _server_env_global_section_name(self):
"""Name of the global section in the configuration files

Can be customized in your model
"""
return "iap_account"
4 changes: 4 additions & 0 deletions server_environment_iap/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
With this module installed, the IAP Accounts can be configured
in the `server_environment_files` module, or in the environment variable ``SERVER_ENV_CONFIG``
and/or ``SERVER_ENV_CONFIG_SECRET``. See the documentation of `server_environment` for
more information.
1 change: 1 addition & 0 deletions server_environment_iap/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Maksym Yankin <maksym.yankin@camptocamp.com> (https://https://www.camptocamp.com)
3 changes: 3 additions & 0 deletions server_environment_iap/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module allows to configure the IAP Accounts
using the `server_environment` mechanism: you can then have different
IAP Accounts for the production and the test environment.
2 changes: 2 additions & 0 deletions server_environment_iap/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Due to the special nature of this addon, you cannot test it on the OCA
runbot.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading