Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] server_environment #1

Open
wants to merge 86 commits into
base: 18.0
Choose a base branch
from

Commits on Oct 1, 2024

  1. [ADD] server evironment file + sample

    (lp:c2c-addons/6.1  rev 11)
    jgrandguillaume authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b696ae9 View commit details
    Browse the repository at this point in the history
  2. [FIX] openerp\assert_exit_level does not exist ! in server_environment

    (lp:c2c-addons/6.1  rev 11.1.4)
    nbessi authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    0db446f View commit details
    Browse the repository at this point in the history
  3. [FIX] typo

    (lp:c2c-addons/6.1  rev 28.1.1)
    nbessi authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    ad0d111 View commit details
    Browse the repository at this point in the history
  4. [FIX] drop the hack for the GTK client, because for 6.1 the web clien…

    …t is the blessed target.
    
    (lp:c2c-addons/6.1  rev 40.2.1)
    florentx authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    526fb12 View commit details
    Browse the repository at this point in the history
  5. [MRG] from upstream

    (lp:c2c-addons/6.1  rev 45.1.4)
    @ authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    92feaa2 View commit details
    Browse the repository at this point in the history
  6. [MRG] Fix by florent.x on server_environment: drop the hack for the G…

    …TK client, because for 6.1 the web client is the blessed target.
    
    (lp:c2c-addons/6.1  rev 116)
    @ authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    dcd0354 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    39f6449 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    174a342 View commit details
    Browse the repository at this point in the history
  9. Generate .pot files

    Sandy Carter authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    9afd540 View commit details
    Browse the repository at this point in the history
  10. [PEP8] server_environment

    yvaucher authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    74e9427 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e4e6523 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    55839b2 View commit details
    Browse the repository at this point in the history
  13. Port server environment to version 8.0

    nbessi authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    f7f1075 View commit details
    Browse the repository at this point in the history
  14. [FIX] travis

    hbrunn authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b2eb985 View commit details
    Browse the repository at this point in the history
  15. capture stderr as well as stdout when diagnosing

    This fixes OCA/server-tools#125 because in some Ubuntu systems
    lsb_release outputs to stderr as well as stdout. This message will be
    printed to console, not logged nor shown among server infomation. That
    way the message is lost and only pollutes unit tests output.
    lepistone authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b68f4b0 View commit details
    Browse the repository at this point in the history
  16. Add license key in __openerp__.py

    yvaucher authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8f2e269 View commit details
    Browse the repository at this point in the history
  17. fix pep8 W503

    gurneyalex authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    75b6b8a View commit details
    Browse the repository at this point in the history
  18. Add OCA as author of OCA addons

    In order to get visibility on https://www.odoo.com/apps the OCA board has
    decided to add the OCA as author of all the addons maintained as part of the
    association.
    gurneyalex authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    727ae3f View commit details
    Browse the repository at this point in the history
  19. Add missing default oca icons

    yvaucher authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    0d72eda View commit details
    Browse the repository at this point in the history
  20. [FIX] unconfigured server_environment doesn't play

    nice with static files
    hbrunn authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    c972fd9 View commit details
    Browse the repository at this point in the history
  21. remove deprecated checks list

    lepistone authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    f20b56f View commit details
    Browse the repository at this point in the history
  22. [UPD] prefix versions with 8.0

    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    a33df8b View commit details
    Browse the repository at this point in the history
  23. [MIG] Make modules uninstallable

    pedrobaeza authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    1f1ca00 View commit details
    Browse the repository at this point in the history
  24. 9.0 migration of server_environment

    gurneyalex authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    1e78113 View commit details
    Browse the repository at this point in the history
  25. [IMP] load server environment options from odoo rcfile too (#556)

    * [IMP] load server environment options from odoo rcfile
    
    This allows delivering the code with default configuration options for
    all environments in the server_environment_file module, but letting
    the administrator override some configuration entries in the regular
    odoo configuration file.
    
    * server_environment_file: update README
    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    04a4506 View commit details
    Browse the repository at this point in the history
  26. [MIG] Make modules uninstallable

    pedrobaeza authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    2dabd89 View commit details
    Browse the repository at this point in the history
  27. [MIG] Rename manifest files

    pedrobaeza authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    7c1daea View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    83fc0ba View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    74e725f View commit details
    Browse the repository at this point in the history
  30. server_environment: bump version

    To trigger rebuild following change in setup.py
    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    3b40014 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    aa45d5b View commit details
    Browse the repository at this point in the history
  32. remove obsolete .pot files [ci skip]

    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    df3aaa7 View commit details
    Browse the repository at this point in the history
  33. Add SERVER_ENV_CONFIG to configure vars from env. variable

    Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG
    
    Allows to isolate the secrets in your deployment
    
    Improve documentation regarding variables
    
    Add a server environment mixin
    
    To automatically convert fields into fields reading values from the
    environment. Until now, every module reimplements the same computed
    field.
    
    Read default values from database when no config is provided
    
    Automatically add <field_name>_env_default for every field transformed
    to a "computed from env" field, so a default value can be set. It will
    be used when the configuration is not set in a configuration file
    (when the key is absent, not empty).
    
    Allow to edit default values for env-computed fields
    
    When they don't have any key in the environment configuration files.
    In the UI, when a field is set in a configuration file, the field is
    readonly, if not the field is editable. Which means you can selectively
    choose which fields depend on the environment and which can use a
    "default" value stored in database.
    
    Fix a few small issues in mixin
    
    Use a dictionary to configure the fields
    
    Add global section
    
    Disable prefetch on env-computed fields
    
    As in the inverse field that write the value into the <field>_env_default
    we have to browse the record, the prefetch has the effect of calling
    compute on the env-computed field which resets the value to it's
    previous state before we have the occasion to store it.
    
    Use global section name as first part of the section
    
    Allow to edit all fields on creation
    
    Make server_environment_files optional
    
    Allow integration with keychain
    
    By adding options to change the compute and inverse methods for default
    fields
    
    Update documentation of server_environment, bump
    
    Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG
    
    Allows to isolate the secrets in your deployment
    
    Reinforce server_environment base tests
    
    Add tests for the server env mixin
    
    Infer configparser getter from field type
    
    Fixes for review feedbacks
    
    Add tests and support of _inherits
    
    Use SavepointCase instead of TransactionCase
    
    It means less records to create for each test
    
    Fix iteration on records
    guewen authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b5cae48 View commit details
    Browse the repository at this point in the history
  34. [REF] Server Environment: restrict access to server config to allowed…

    … users
    
    New security group restricting access to server config
    Admin is part of the group by default
    ThomasBinsfeld authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    4d12b9b View commit details
    Browse the repository at this point in the history
  35. [MIG] server_environment from 11 to 12

    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    938a362 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    4829281 View commit details
    Browse the repository at this point in the history
  37. pre-commit, black, isort

    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    02cec4d View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    6d362e7 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    08f4e04 View commit details
    Browse the repository at this point in the history
  40. pre-commit, black, isort

    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    eb71ed0 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    67544aa View commit details
    Browse the repository at this point in the history
  42. Store the 'server.config' fields in sparse fields

    This model is used only to display the configuration to authorized
    users. It's a TransientModel that dynamically creates the fields for
    every odoo configuration parameter, environment variables and some
    system ones. Before this change, each new parameter/variable will
    create a field in database, which can lead to many issues (lot of
    fields, field name too long). Storing the fields in a single JSON
    field resolves these issues and is much cleaner anyway.
    guewen authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    dd09636 View commit details
    Browse the repository at this point in the history
  43. server_environment: Improve tests.common to allow redefinition of ser…

    …v_config application
    grindtildeath authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    4843249 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    09d549f View commit details
    Browse the repository at this point in the history
  45. Fix server_environment version

    The PR OCA#45 has been merged manually and a new version was not bumped.
    simahawk authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    2de38eb View commit details
    Browse the repository at this point in the history
  46. Add mixin for tech name

    simahawk authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    224f5c5 View commit details
    Browse the repository at this point in the history
  47. Update server_environment/serv_config.py

    Co-authored-by: Moises Lopez - https://www.vauxoo.com/ <moylop260@vauxoo.com>
    2 people authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b1199a7 View commit details
    Browse the repository at this point in the history
  48. [IMP] : black, isort, prettier

    mourad-ehm authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    391aa01 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    a4e4957 View commit details
    Browse the repository at this point in the history
  50. Translated using Weblate (French)

    Currently translated at 8.1% (8 of 98 strings)
    
    Translation: server-env-14.0/server-env-14.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-14-0/server-env-14-0-server_environment/fr/
    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    14f98ea View commit details
    Browse the repository at this point in the history
  51. Translated using Weblate (Spanish)

    Currently translated at 9.1% (9 of 98 strings)
    
    Translation: server-env-14.0/server-env-14.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-14-0/server-env-14-0-server_environment/es/
    Mat-moran authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8cc76ec View commit details
    Browse the repository at this point in the history
  52. [UPD] Change LICENSE to LGPL

    ivantodorovich authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    21a6fe9 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    467ffdd View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    28be183 View commit details
    Browse the repository at this point in the history
  55. 15.0 server_environment is Production/Stable

    server_environment is a dependency of other modules which are in this status
    and now that we are checking this, we need to declare the maturity
    explicitly
    gurneyalex authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    81a8548 View commit details
    Browse the repository at this point in the history
  56. server_environment: Update default fields label

    this to avoid Odoo warning messages on labels check
    adrienpeiffer authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    aa7a038 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    c9e1db3 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    9405016 View commit details
    Browse the repository at this point in the history
  59. Remove required from tech_name mixin

    In some cases, we want to use a tech_name, but we do not use server
    environment on all the records, so tech_name should not be required.
    guewen authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    35a519f View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    94ffb50 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    ddace5f View commit details
    Browse the repository at this point in the history
  62. server_env: fix inverse method (closes OCA#151)

    ``odoo.fields.determine`` requires inverse methods to have ``__name__`` attribute.
    Unfortunately with ``partialmethod`` this attribute is not propagated
    even by using ``functools.update_wrapper``.
    In any case, `update_wrapper` would propagate the wrapped func name
    which is not the same here.
    
    Introduced by odoo/odoo@3654465
    simahawk authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    4e50d1d View commit details
    Browse the repository at this point in the history
  63. [IMP] Server env default fields string

    Not all fields have their string in the args, but '.string' returns the computed (based on field name) string if not set in the args.
    qgroulard authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    fd29b16 View commit details
    Browse the repository at this point in the history
  64. Translated using Weblate (Italian)

    Currently translated at 6.5% (7 of 107 strings)
    
    Translation: server-env-16.0/server-env-16.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/it/
    francesco-ooops authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    031c7da View commit details
    Browse the repository at this point in the history
  65. Translated using Weblate (Spanish)

    Currently translated at 65.4% (70 of 107 strings)
    
    Translation: server-env-16.0/server-env-16.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/es/
    Ivorra78 authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    9b36e33 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    843fa0c View commit details
    Browse the repository at this point in the history
  67. Cache get_serverenvironment()

    sbidoul authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    e718d7c View commit details
    Browse the repository at this point in the history
  68. Translated using Weblate (Spanish)

    Currently translated at 100.0% (107 of 107 strings)
    
    Translation: server-env-16.0/server-env-16.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/es/
    Ivorra78 authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8fcade7 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    9965ffe View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    8789543 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    9c56bf6 View commit details
    Browse the repository at this point in the history
  72. [UPD] Update server_environment.pot

    oca-ci authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    54a621b View commit details
    Browse the repository at this point in the history
  73. [BOT] post-merge updates

    OCA-git-bot authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    0ada9d1 View commit details
    Browse the repository at this point in the history
  74. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-env-17.0/server-env-17.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/
    weblate authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    c1ba10d View commit details
    Browse the repository at this point in the history
  75. Translated using Weblate (Spanish)

    Currently translated at 100.0% (107 of 107 strings)
    
    Translation: server-env-17.0/server-env-17.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/es/
    Ivorra78 authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    269d254 View commit details
    Browse the repository at this point in the history
  76. Translated using Weblate (Italian)

    Currently translated at 100.0% (107 of 107 strings)
    
    Translation: server-env-17.0/server-env-17.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/it/
    mymage authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    98f5575 View commit details
    Browse the repository at this point in the history
  77. [UPD] Update server_environment.pot

    oca-ci authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    18c9854 View commit details
    Browse the repository at this point in the history
  78. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-env-17.0/server-env-17.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/
    weblate authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    3eaaaa2 View commit details
    Browse the repository at this point in the history
  79. Translated using Weblate (Swedish)

    Currently translated at 100.0% (106 of 106 strings)
    
    Translation: server-env-17.0/server-env-17.0-server_environment
    Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/sv/
    jakobkrabbe authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    acb9242 View commit details
    Browse the repository at this point in the history
  80. server_environment: Fix value assignation in compute from default

    Since previous commit adding support for ssl certificate auth,
    field smtp_authentication in ir.mail_server, became a field managed by
    environment, when mail_environment is installed.
    
    This field has been defined using a default value relying on the
    compute_default property allowing to define a compute function,
    which matches the default value of the field.
    
    However, as the function _compute_server_env_from_default was broken,
    because it did not assign the computed value to the field, the
    field was empty and connection was broken.
    grindtildeath authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    839eafc View commit details
    Browse the repository at this point in the history
  81. [BOT] post-merge updates

    OCA-git-bot authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    f3923ac View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    9ebc855 View commit details
    Browse the repository at this point in the history
  83. [FIX] server_environment: compute_default assign

    Revert "server_environment: Fix value assignation in compute from default"
    
    This reverts commit 464f3ec which would
    break other modules using server_environment.
    
    The original issue must be fixed in mail_environment.
    gurneyalex authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    49bc7a0 View commit details
    Browse the repository at this point in the history
  84. [BOT] post-merge updates

    OCA-git-bot authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b388f4f View commit details
    Browse the repository at this point in the history
  85. [BOT] post-merge updates

    OCA-git-bot authored and chaule97 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    342da8d View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    1be060b View commit details
    Browse the repository at this point in the history