콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3043 화면

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.

아바타
취소
베스트 답변

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

아바타
취소

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

작성자

That worked wonderfully.
Thank you very much!

관련 게시물 답글 화면 활동
2
9월 22
2133
1
2월 24
1684
1
11월 22
5525
1
7월 22
3594
1
6월 25
1453