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: Migration to 18.0 #2

Closed

Commits on Sep 24, 2024

  1. [ADD] server evironment file + sample

    (lp:c2c-addons/6.1  rev 11)
    jgrandguillaume authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    420ebc4 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    8e5c9f0 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    49695e1 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    baea6d5 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    3fb7e61 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    93fab62 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c5c1155 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b0f1e27 View commit details
    Browse the repository at this point in the history
  9. Generate .pot files

    Sandy Carter authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    23027a3 View commit details
    Browse the repository at this point in the history
  10. [PEP8] server_environment

    yvaucher authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6eacd69 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    dbea5fc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    84fc080 View commit details
    Browse the repository at this point in the history
  13. Port server environment to version 8.0

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

    hbrunn authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f1ea0d3 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    926161a View commit details
    Browse the repository at this point in the history
  16. Add license key in __openerp__.py

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

    gurneyalex authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f9e9e7a 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    38388c3 View commit details
    Browse the repository at this point in the history
  19. Add missing default oca icons

    yvaucher authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6b3c528 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    5fbdc98 View commit details
    Browse the repository at this point in the history
  21. remove deprecated checks list

    lepistone authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c9221bb View commit details
    Browse the repository at this point in the history
  22. [UPD] prefix versions with 8.0

    sbidoul authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    bd2a005 View commit details
    Browse the repository at this point in the history
  23. [MIG] Make modules uninstallable

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

    gurneyalex authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    546314d 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    101d255 View commit details
    Browse the repository at this point in the history
  26. [MIG] Make modules uninstallable

    pedrobaeza authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    7cf57ae View commit details
    Browse the repository at this point in the history
  27. [MIG] Rename manifest files

    pedrobaeza authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c624c18 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    32ad216 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    c94246b 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    a5ca75f View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    961e605 View commit details
    Browse the repository at this point in the history
  32. remove obsolete .pot files [ci skip]

    sbidoul authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    903b1f3 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    908151b 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    cfdaa26 View commit details
    Browse the repository at this point in the history
  35. [MIG] server_environment from 11 to 12

    sbidoul authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e0df922 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    985a1d3 View commit details
    Browse the repository at this point in the history
  37. pre-commit, black, isort

    sbidoul authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    01007eb View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    007aa8f View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    ecc0df7 View commit details
    Browse the repository at this point in the history
  40. pre-commit, black, isort

    sbidoul authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    d599669 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    af245c8 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f1ef218 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    186b98b View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    bbfca6c 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e19859c View commit details
    Browse the repository at this point in the history
  46. Add mixin for tech name

    simahawk authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    8dbf2af 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/ <[email protected]>
    2 people authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    58225c1 View commit details
    Browse the repository at this point in the history
  48. [IMP] : black, isort, prettier

    mourad-ehm authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c22d842 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    0ff8716 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    9b6f325 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    5bd2348 View commit details
    Browse the repository at this point in the history
  52. [UPD] Change LICENSE to LGPL

    ivantodorovich authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e5339c4 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    be7bf0f View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    325f1d4 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    367a580 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    7584671 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    3619c9b View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    9bcffff 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    33cee64 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    c28256d View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    567cf47 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    cf2fe3c 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    138160f 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    006b9d6 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    1b20f04 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    32dd7a1 View commit details
    Browse the repository at this point in the history
  67. Cache get_serverenvironment()

    sbidoul authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    ab2c938 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e29f679 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    ba8a4b2 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    63c8af2 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    24fef36 View commit details
    Browse the repository at this point in the history
  72. [UPD] Update server_environment.pot

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

    OCA-git-bot authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    42b63d6 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    504dfd1 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    0f27063 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    61c44d9 View commit details
    Browse the repository at this point in the history
  77. [UPD] Update server_environment.pot

    oca-ci authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    17f47d0 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    403e85a 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    32b6447 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    9214e67 View commit details
    Browse the repository at this point in the history
  81. [BOT] post-merge updates

    OCA-git-bot authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e9debfc View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    53cf23a 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 thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6875436 View commit details
    Browse the repository at this point in the history
  84. [BOT] post-merge updates

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

    OCA-git-bot authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e9533df View commit details
    Browse the repository at this point in the history
  86. [IMP] server_environmnet: allow to overwrite odoo config options from…

    … server_environment_files
    petrus-v authored and thienvh332 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    b9ec8c3 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    1105d02 View commit details
    Browse the repository at this point in the history