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 from 17.0 #204

Draft
wants to merge 90 commits into
base: 18.0
Choose a base branch
from

Commits on Sep 30, 2024

  1. [ADD] server evironment file + sample

    (lp:c2c-addons/6.1  rev 11)
    jgrandguillaume authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    a07fc2d 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    17e2969 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    bf22b65 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    759d7a1 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b4d3c4d 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    1fee868 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    627817f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b44c67a View commit details
    Browse the repository at this point in the history
  9. Generate .pot files

    Sandy Carter authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4810e47 View commit details
    Browse the repository at this point in the history
  10. [PEP8] server_environment

    yvaucher authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    7083994 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b0addec View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9012c9c View commit details
    Browse the repository at this point in the history
  13. Port server environment to version 8.0

    nbessi authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    f115489 View commit details
    Browse the repository at this point in the history
  14. [FIX] travis

    hbrunn authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    58d905f 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    1cbc4d4 View commit details
    Browse the repository at this point in the history
  16. Add license key in __openerp__.py

    yvaucher authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    a6adc4e View commit details
    Browse the repository at this point in the history
  17. fix pep8 W503

    gurneyalex authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    2bb0a4b 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    1de9f54 View commit details
    Browse the repository at this point in the history
  19. Add missing default oca icons

    yvaucher authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    643b317 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    8cda068 View commit details
    Browse the repository at this point in the history
  21. remove deprecated checks list

    lepistone authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    e275b0f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    88bf62c View commit details
    Browse the repository at this point in the history
  23. [MIG] Make modules uninstallable

    pedrobaeza authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    54b26a9 View commit details
    Browse the repository at this point in the history
  24. 9.0 migration of server_environment

    gurneyalex authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4008e2c 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 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4ac862c View commit details
    Browse the repository at this point in the history
  26. [MIG] Make modules uninstallable

    pedrobaeza authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6a529fe View commit details
    Browse the repository at this point in the history
  27. [MIG] Rename manifest files

    pedrobaeza authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    87e2dd9 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    2e3ddd4 View commit details
    Browse the repository at this point in the history
  29. [MIG] server_environment: Migration to 11.0

    TDu authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    19b5cf6 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 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    68356dd View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    bbbf677 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    5dc4273 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b2bc3c2 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    f05c431 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    547b45f View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    13af908 View commit details
    Browse the repository at this point in the history
  37. pre-commit, black, isort

    sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4980c4c View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    1b6f1b1 View commit details
    Browse the repository at this point in the history
  39. server-environment: Run pre-commit

    grindtildeath authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    dd4de68 View commit details
    Browse the repository at this point in the history
  40. pre-commit, black, isort

    sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b87b9cf View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    9af1730 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9df937b 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    650fc6a View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    790631b View commit details
    Browse the repository at this point in the history
  45. Fix server_environment version

    The PR #45 has been merged manually and a new version was not bumped.
    simahawk authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    8ef5147 View commit details
    Browse the repository at this point in the history
  46. Add mixin for tech name

    simahawk authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    e1d6602 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    0487cd7 View commit details
    Browse the repository at this point in the history
  48. [IMP] : black, isort, prettier

    mourad-ehm authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    42877bf View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    1f99468 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 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    662566a 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    08bb66a View commit details
    Browse the repository at this point in the history
  52. [UPD] Change LICENSE to LGPL

    ivantodorovich authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    ebf9e88 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    ea5b130 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    f5f49a0 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c93fbaf 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6a91ed7 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    f0e731d View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    6a5d868 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    a212c71 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    dbe7daa View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    02d0bf0 View commit details
    Browse the repository at this point in the history
  62. server_env: fix inverse method (closes #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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6b665db 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    d6c0f7b 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    ff10872 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6101537 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    ae03baa View commit details
    Browse the repository at this point in the history
  67. Cache get_serverenvironment()

    sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    2b3eff4 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    8047946 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    c0b947a View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    af8f29c View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    e59f1b4 View commit details
    Browse the repository at this point in the history
  72. [UPD] Update server_environment.pot

    oca-ci authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c2e83ec View commit details
    Browse the repository at this point in the history
  73. [BOT] post-merge updates

    OCA-git-bot authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    fe8a26a 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    686eed0 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c58e1c1 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    104304f View commit details
    Browse the repository at this point in the history
  77. [UPD] Update server_environment.pot

    oca-ci authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    31219b7 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    fd5843a 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9274bd2 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4cfc51d View commit details
    Browse the repository at this point in the history
  81. [BOT] post-merge updates

    OCA-git-bot authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    83acbcc View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    722df5c 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 sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    84a7fb8 View commit details
    Browse the repository at this point in the history
  84. [BOT] post-merge updates

    OCA-git-bot authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    80e4846 View commit details
    Browse the repository at this point in the history
  85. [BOT] post-merge updates

    OCA-git-bot authored and sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4b13d43 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    c8c84ee View commit details
    Browse the repository at this point in the history
  87. [TMP] ruff.toml fies

    sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b2e2cc9 View commit details
    Browse the repository at this point in the history
  88. [IMP] pre-commit autofixes

    sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6260e87 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    88522fd View commit details
    Browse the repository at this point in the history
  90. [IMP] README.rst generation

    sbidoul committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c3b2f7a View commit details
    Browse the repository at this point in the history