[IMP] server_environment_data_encryption: black, isort, prettier

This commit is contained in:
Florian da Costa 2022-10-09 16:58:01 +02:00
parent bcfc6b8b46
commit ff4aa12cc0
4 changed files with 66 additions and 14 deletions

View File

@ -1,6 +1,11 @@
<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">
@ -8,14 +13,31 @@
<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">
<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="date" modifiers="{&quot;readonly&quot;: true}"/>
<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="date" modifiers="{&quot;readonly&quot;: true}" />
</group>
</sheet>
</form>

View File

@ -1,6 +1,11 @@
<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">
@ -8,14 +13,32 @@
<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">
<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="date" modifiers="{&quot;readonly&quot;: true}" readonly="1"/>
<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="date" modifiers="{&quot;readonly&quot;: true}" readonly="1" />
</group>
</sheet>
</form>

View File

@ -0,0 +1 @@
../../../../server_environment_data_encryption

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)