Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
2034 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Add a field to CRM Kanban View - Inherit แก้ไขแล้ว
1
พ.ค. 21
6717
1
มี.ค. 15
5366
1
มี.ค. 15
5038
2
พ.ค. 25
1399
1
ธ.ค. 24
1545