Skip to content

Commit

Permalink
Store the 'server.config' fields in sparse fields
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guewen authored and chaule97 committed Oct 1, 2024
1 parent 67544aa commit dd09636
Show file tree
Hide file tree
Showing 71 changed files with 353 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server_environment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "server configuration environment files",
"version": "13.0.2.1.0",
"version": "13.0.2.2.0",
"depends": ["base", "base_sparse_field"],
"author": "Camptocamp,Odoo Community Association (OCA)",
"summary": "move some configurations out of the database",
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/am.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/bs.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/el_GR.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_AR.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_CL.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_CO.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_CR.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_DO.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_EC.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_MX.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_PE.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_PY.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/es_VE.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/et.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/eu.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/fa.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/fr_CA.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/fr_CH.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/gl.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/gl_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
5 changes: 5 additions & 0 deletions server_environment/i18n/he.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__config
msgid "Config"
msgstr ""

#. module: server_environment
#: model:ir.model.fields,field_description:server_environment.field_server_config__create_uid
msgid "Created by"
Expand Down
Loading

0 comments on commit dd09636

Please sign in to comment.