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

Is there a way to hide the text "Activate here a new currency before creating a new company." in the company form view bellow the currency field? Or at least change the text?

아바타
취소
베스트 답변

Hi Samo Arko,
I couldn't find the field you mentioned. You can simply solve your problem by:

1) Activating the developer mode (Settings/ Activate Developer Mode)
2) Go to the form you want to edit(where is the field) and click "Edit form view"

3) Find the object or field that you want to edit and add change/attribute:


When it comes to field these are the commone attributes
- invisible="1" if you want to make the entire field invisible

- placeholder="some text" if you want to change the placeholder(like odoo.com to your website)
- help="some help" - this is displayed when you hover over the field
4) Save and refresh

Remember that if you want to make apermament chage you will have to write a module for that. If not your field attributes will come back to the previous state as soon as you update the Odoo

아바타
취소
작성자

I know how to hide fields and using the developer tools. With it I found that it's shown bellow the currency field. The problem is I think that it is text that is shown with javascript and it's reletad to the filed by the currency fields id. I tried to set the ID to empty '' with xpath expresion, but then I gotten an error that it can't find the ID in the view. And the way you described is the absolute wrong way of doing changes!

I have updated the post with screenshots and it works. I disagree with you - changing first in a developer mode is a good practice so you can see if the logic was good before starting to write a module

작성자

OK I found the code you posted. Had to look into the inherited views. Now how can I hide the html code without just comment it out in the edit form view but from a custom inherited view?

I would catch the "p" from inherited view and replace it with something:

<xpath expr="//p[1]" position="replace">

<br/>

</xpath>

or create another view with different sequence or just set the attribute of p for invisible

작성자

Thanks that worked.

관련 게시물 답글 화면 활동
0
11월 19
3923
6
8월 19
4650
3
2월 19
7282
0
2월 18
4840
2
11월 17
9444