diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-01-23 12:05:05 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2020-01-31 12:49:23 +0000 |
| commit | 96d30d34b70cccf529c53bb11e86a6471db7a569 (patch) | |
| tree | 0a8f00d45798dd7ba5b0979cbef65eef4a3e2b7d /addons/payment/views/payment_views.xml | |
| parent | 5682aad7ac54f9d9b8ab0371943ded56d5c4c434 (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/payment/views/payment_views.xml')
| -rw-r--r-- | addons/payment/views/payment_views.xml | 2 |
1 files changed, 2 insertions, 0 deletions
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)]}"> |
