[MIG] server_environment_data_encryption, data_encryption: Migration to 14.0

note: exclude tests/fixtures from pre-commit check
This commit is contained in:
Mourad 2020-10-12 15:32:19 +02:00 committed by Sébastien BEAU
parent 76a77780bd
commit 5815237d40
5 changed files with 29 additions and 72 deletions

View File

@ -8,6 +8,8 @@ exclude: |
^README\.md$|
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
# fixture directory can contain data used in test that is formatted in different manner
/tests/fixtures/|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts

View File

@ -3,10 +3,10 @@
{
"name": "Encryption data",
"summary": "Store accounts and credentials encrypted by environment",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"development_status": "Alpha",
"category": "Tools",
"website": "https://github/oca/server-env",
"website": "https://github.com/OCA/server-env",
"author": "Akretion, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,

View File

@ -1,7 +1,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Server Environment Data Encryption",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"development_status": "Alpha",
"category": "Tools",
"website": "https://github.com/OCA/server-env",

View File

@ -1,11 +1,6 @@
<form string="Test">
<header>
<button
string="Reset Confirmation"
type="object"
name="set_draft"
states="done"
/>
<button string="Reset Confirmation" type="object" name="set_draft" states="done"/>
</header>
<sheet>
<div class="d-flex justify-content-between">
@ -13,30 +8,13 @@
<strong>Modify values for test environment</strong>
</div>
<div>
<button
name="action_change_env_data_encrypted_fields"
type="object"
string="Define values for preprod"
class="btn btn-lg btn-primary ml-2"
context="{'environment': 'preprod'}"
/>
<button
name="action_change_env_data_encrypted_fields"
type="object"
string="Define values for prod"
class="btn btn-lg btn-primary ml-2"
context="{'environment': 'prod'}"
/>
<button name="action_change_env_data_encrypted_fields" type="object" string="Define values for preprod" class="btn btn-lg btn-primary ml-2" context="{'environment': 'preprod'}"/>
<button name="action_change_env_data_encrypted_fields" type="object" string="Define values for prod" class="btn btn-lg btn-primary ml-2" context="{'environment': 'prod'}"/>
</div>
</div>
<group col="4">
</div><group col="4">
<field name="test" modifiers="{&quot;required&quot;: true}"/>
<field
name="test2"
attrs="{'readonly': [('type_env_is_editable', '=', False)]}"
on_change="1"
modifiers="{&quot;readonly&quot;: [[&quot;type_env_is_editable&quot;, &quot;=&quot;, false]]}"
/>
<field name="test2" attrs="{'readonly': [('type_env_is_editable', '=', False)]}" on_change="1" modifiers="{&quot;readonly&quot;: [[&quot;type_env_is_editable&quot;, &quot;=&quot;, false]]}"/>
<field name="date" modifiers="{&quot;readonly&quot;: true}"/>
</group>
</sheet>

View File

@ -1,11 +1,6 @@
<form string="Test">
<header>
<button
string="Reset Confirmation"
type="object"
name="set_draft"
states="done"
/>
<button string="Reset Confirmation" type="object" name="set_draft" states="done"/>
</header>
<sheet>
<div class="d-flex justify-content-between">
@ -13,31 +8,13 @@
<strong>Modify values for prod environment</strong>
</div>
<div>
<button
name="action_change_env_data_encrypted_fields"
type="object"
string="Define values for preprod"
class="btn btn-lg btn-primary ml-2"
context="{'environment': 'preprod'}"
/>
<button
name="action_change_env_data_encrypted_fields"
type="object"
string="Define values for test"
class="btn btn-lg btn-primary ml-2"
context="{'environment': 'test'}"
/>
<button name="action_change_env_data_encrypted_fields" type="object" string="Define values for preprod" class="btn btn-lg btn-primary ml-2" context="{'environment': 'preprod'}"/>
<button name="action_change_env_data_encrypted_fields" type="object" string="Define values for test" class="btn btn-lg btn-primary ml-2" context="{'environment': 'test'}"/>
</div>
</div>
<group col="4">
</div><group col="4">
<field name="test" modifiers="{&quot;readonly&quot;: true}" readonly="1"/>
<field
name="test2"
attrs="{'readonly': [('type_env_is_editable', '=', False)]}"
on_change="1"
modifiers="{&quot;readonly&quot;: true}"
readonly="1"
/>
<field name="test2" attrs="{'readonly': [('type_env_is_editable', '=', False)]}" on_change="1" modifiers="{&quot;readonly&quot;: true}" readonly="1"/>
<field name="date" modifiers="{&quot;readonly&quot;: true}" readonly="1"/>
</group>
</sheet>