summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-01-23 12:05:05 +0000
committerVictor Feyens <vfe@odoo.com>2020-01-31 12:49:23 +0000
commit96d30d34b70cccf529c53bb11e86a6471db7a569 (patch)
tree0a8f00d45798dd7ba5b0979cbef65eef4a3e2b7d /addons
parent5682aad7ac54f9d9b8ab0371943ded56d5c4c434 (diff)
[FIX] payment: show the state in the ribbon
closes odoo/odoo#44382 X-original-commit: 0fc90e56f57f91f234fc2b8744d5048dd5ecf165 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/payment/i18n/payment.pot2
-rw-r--r--addons/payment/views/payment_views.xml2
2 files changed, 4 insertions, 0 deletions
diff --git a/addons/payment/i18n/payment.pot b/addons/payment/i18n/payment.pot
index a79679289ca..8fd3f983449 100644
--- a/addons/payment/i18n/payment.pot
+++ b/addons/payment/i18n/payment.pot
@@ -667,6 +667,7 @@ msgstr ""
#. module: payment
#: model:ir.model.fields.selection,name:payment.selection__payment_acquirer__state__disabled
+#: model_terms:ir.ui.view,arch_db:payment.acquirer_form
msgid "Disabled"
msgstr ""
@@ -1656,6 +1657,7 @@ msgstr ""
#. module: payment
#: model:ir.model.fields.selection,name:payment.selection__payment_acquirer__state__test
#: model_terms:ir.ui.view,arch_db:payment.payment_tokens_list
+#: model_terms:ir.ui.view,arch_db:payment.acquirer_form
msgid "Test Mode"
msgstr ""
diff --git a/addons/payment/views/payment_views.xml b/addons/payment/views/payment_views.xml
index c5efaad0f93..622e0b9b34c 100644
--- a/addons/payment/views/payment_views.xml
+++ b/addons/payment/views/payment_views.xml
@@ -16,6 +16,8 @@
<field name="module_to_buy" invisible="1"/>
<field name="inbound_payment_method_ids" invisible="1"/>
<field name="image_128" widget="image" class="oe_avatar"/>
+ <widget name="web_ribbon" title="Disabled" bg_color="bg-danger" attrs="{'invisible': [('state', '!=', 'disabled')]}"/>
+ <widget name="web_ribbon" title="Test Mode" bg_color="bg-warning" attrs="{'invisible': [('state', '!=', 'test')]}"/>
<div class="oe_title">
<h1><field name="name" placeholder="Name"/></h1>
<div attrs="{'invisible': ['|', ('module_state', '=', 'installed'), ('module_id', '=', False)]}">