Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8264 Lượt xem

We have a multiple database setup.

I would like to notify Users which database they are in, so that they don't think they are in production when they are not, or don't mess around in production when they should not.


add ribbon uat

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Two potential options:


A. If you would like a solution using a third party app, see https://apps.odoo.com/apps/modules/15.0/web_environment_ribbon/


B. If you would like a solution without a module, create a custom View like this:


< ?xml version="1.0"?>

< data inherit_id="web.layout">

< xpath expr="//body" position="inside">
< div>
< span style="width: 400px;top: 55px;left: -100px;font-size: 40px;
text-align: center;padding: 10px;line-height: 30px;
color: #f0f0f0; transform: rotate(-45deg); position: fixed;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); background: #D0442C;
opacity: 0.6; pointer-events: none; text-transform: uppercase;
z-index:9999">
TESTING
< /div>
< /xpath>

/data>



Users will then see this:


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 22
4876
2
thg 5 23
4715
1
thg 1 23
4079
0
thg 10 22
1630
0
thg 8 22
3