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

Hi,

We are currently on a Odoo.com hosted V15 database.

I'm trying to add some static text to be shown in the form view of MOs. The text is meant to be instructions for QC machines that are used in a continuous manner during the whole MO.

Is there a way to add such static text in a form using Studio? We had a previous workaround where we created a dummy studio app where we had that text, and it was linked using a related field, but that broke some times ago and never fixed.

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

Hi,

If you already have some changes done in the form using the studio application, the following process will be easier for you.

When you make changes in the form using studio, it will create a record in ir.ui.view table in the db, holding the information of changes you have applied.

* Open debug mode
* Open the form view where you need to add the static text
* Click on Edit View: Form from the debugger button
* Click on inherited views page
* Scroll down to last and open the view named: studio customization's

And add below code:
  

 


Thanks

Ảnh đại diện
Huỷ bỏ

<xpath expr="//sheet" position="before">
<div class="alert alert-warning" role="alert" name="test_warning">
You can add your instructions here
</div>
</xpath>

Tác giả

That worked wonderfully.
Thank you very much!

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 22
2128
1
thg 2 24
1684
1
thg 11 22
5519
1
thg 7 22
3590
1
thg 6 25
1420