[FIX] web: fix enterprise badge in settings being hidden and wrong color

After the bootstrap migration, the enterprise badge in the settings view
were the wrong color because the class bg-primary was not adapted. This
commit fixes that.

After the wowl views merge, the badge has become hidden behind the
navbar, because it can no longer modify the DOM of its label as it is
managed by owl. When there is no label, the widget appends the badge to
its own $el, and uses position: absolute to position it. This didn't
work because the closest parent that was positioned was the view itself.
This commit fixes that by giving a position: relative to the settings
box.

closes odoo/odoo#96580

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Samuel Degueldre
2022-07-25 16:34:01 +02:00
parent e9b9f6520f
commit 4c2dff9205
2 changed files with 2 additions and 1 deletions
@@ -94,7 +94,7 @@ var AbstractFieldUpgrade = {
this._super.apply(this, arguments);
this._insertEnterpriseLabel($("<span>", {
text: "Enterprise",
'class': "badge bg-primary oe_inline o_enterprise_label"
'class': "badge text-bg-primary oe_inline o_enterprise_label"
}));
},
/**
@@ -18,6 +18,7 @@
.o_setting_box {
margin-bottom: 8px;
margin-top: 8px;
position: relative;
}
.o_setting_left_pane {