Skip to content

Commit

Permalink
[FIX] fix warning of field required on edit other provider
Browse files Browse the repository at this point in the history
  • Loading branch information
odoo-mvds committed Oct 22, 2022
1 parent 8f68430 commit 318c924
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion payment_mollie_official/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
'name': 'Mollie Payments',
'version': '14.0.0.10',
'version': '14.0.0.11',
'category': 'eCommerce',
'license': 'LGPL-3',
'author': 'Mollie',
Expand Down
9 changes: 9 additions & 0 deletions payment_mollie_official/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ <h1 style="color: #000;font-weight: bold;/* font-size: 50px; */" class="mt-5 tex
<span style="width:73px;height: 10px;display:inline-block;border-radius: 4px;background-color: #0077ff;"> </span>
</div>

<div class="card mx-auto w-md-75">
<div class="card-header bg-200">
<h4 class="m-0">v14.0.0.11</h4>
</div>
<div class="card-body">
<div> <b class="text-danger"> FIX </b> Make <i>mollie profile id</i> optional for other provider. </div>
</div>
</div>

<div class="card mx-auto w-md-75">
<div class="card-header bg-200">
<h4 class="m-0">v14.0.0.10</h4>
Expand Down
2 changes: 1 addition & 1 deletion payment_mollie_official/views/payment_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<field name="mollie_api_key_test" attrs="{'required':[ ('provider', '=', 'mollie'), ('state', '=', 'test')]}" password="True"/>
<field name="mollie_api_key_prod" attrs="{'required':[ ('provider', '=', 'mollie'), ('state', '=', 'enabled')]}" password="True"/>
<field name="mollie_use_components" />
<field name="mollie_profile_id" password="True" attrs="{'invisible': [('mollie_use_components', '=', False)], 'required': [('mollie_use_components', '=', True)]}"/>
<field name="mollie_profile_id" password="True" attrs="{'invisible': [('mollie_use_components', '=', False)], 'required': [('mollie_use_components', '=', True), ('provider', '=', 'mollie')]}"/>
<label string=" " for="mollie_profile_id" attrs="{'invisible': [('mollie_use_components', '=', False)]}"> </label>
<small class="text-muted" attrs="{'invisible': [('mollie_use_components', '=', False)]}"> Credit card option will not be displayed without profile ID.
<br/>
Expand Down

0 comments on commit 318c924

Please sign in to comment.