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

We are looking how we can format product descriptions and similar fields with html-tags line line breaks paragraphs unordered lists. Is there an option to add a HTML editor for such fields in Odoo 8?

아바타
취소
작성자

Thanks Axel,


is there an option to do this without changing core code?

Ralf

베스트 답변

Yes there is, just set the widget="html" in the field definition on the view like:

<field name="description" widget="html"/>

or

Define the field in the model like:

description = fields.Html('Description')


아바타
취소

In case of a field set to tracking=True, all html code will be displayed in the history.

관련 게시물 답글 화면 활동
0
12월 17
3833
1
6월 15
6729
1
12월 24
1289
login form 해결 완료
1
11월 23
1601
1
8월 22
4110