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

Hello!


I'm using Odoo Online SaaS V17.


I dont have studio, and I'm trying to customize CRM kanban view with something I think is simple... but as simple as it seems I don't get it done lol.


I've added some custom fields on the form view. I get to show them on the kanban view, but in order to have the information readable I wanted to put field names, and there´s my issue.


This is my kanban view:


And this is my code:


But in both cases this field for the string "Tipo poliza" or " "Número póliza" keeps showing even if the field "x_tipo_poliza" or "x_numero_poliza" are empty. I want the the string to be shown only if there's a value for the field.


Or if you have another solution to show the field name on the kanban view will also be nice.


Thanks in advance for your help.

아바타
취소
베스트 답변

Hello i think you should try t-if="record.x_tipo_poliza.raw_value"

아바타
취소
작성자 베스트 답변

Thanks everyone for your answer, the only one that worked fine was the raw_value

아바타
취소
베스트 답변

Hello, 

Can you try putting it as [ t-if="record.x_tipo_poliza != ''" ]


아바타
취소
작성자

Hello! this worked, the raw_value! thanks for your help!

베스트 답변

hasta donde entiendo los dominios funcionan como un condicional también, podrían intentar con uno que se vea más o menos de esta manera "domain="[('x_tipo_poliza', '=', True)]"" así le estarías diciendo que se muestre si es verdadero, o en este caso, que se muestre si esta establecido

아바타
취소
관련 게시물 답글 화면 활동
1
5월 21
6878
1
3월 15
5473
1
3월 15
5135
2
5월 25
1594
1
12월 24
1726