Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Odoo 16 - Standard Kanban view: description beside value

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
fieldlabelkanbandescriptionstring
2 Replies
4626 Tampilan
Avatar
MK

Hi, 

I'm new to Odoo and I am following the "Getting started" tutorial (sorry, I can't post links yet).

In Chapter 15 there is an example of a Kanban view. I managed to display the values via the field tag and name attribute, but the provided image in the "Goal" note of "Concrete Example: A Kanban View" section, shows that there are static description strings (like: "Expected price: ", or "Best offer: ") near the actual model values. I would like to put them also in my view.

I have read the Kanban view reference in Odoo's documentation, and I noticed that string attribute of field tag is not supported as it is for the tree view, so how can I manage to put the UI description beside the actual value?


Inserting (before the field) a label tag with the description in it will not consider blank spaces, and the " " entity won't work either.


Thanks in advance

0
Avatar
Buang
Avatar
Onik
Jawaban Terbai

Try using this kind of approach. 

t t-if="record.state.raw_value == 'offer_r'">

​div class="o_kanban_field">

​ ​Best Offer: 

​ ​field name="best_offer">

​/div>

/t>

(I removed the tags because submitting the answer would cause the code to disappear)

Here is the exercise given in 15th chapter. First of all ill explain the o_kanban_field. I used it to separate the fields because they were in the same line and you can write your label straight in the div(If you want to make the text bold surround the text with tag). The t-if is for the best offer to be visible only if the state is offer received.

0
Avatar
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

Hi,


To add static description strings next to the actual model values in a Kanban view in Odoo, you can achieve this by using the t-field attribute. The t-field attribute is used for defining the string to display in the field on the Kanban card. Here's how you can do it:

Add a t-field attribute to the field tag, and set it to a string that includes the description and a placeholder for the actual field value. For example:

<field name="expected_price" t-field="('Expected price: %s' % record.expected_price)"/>

   


In this example, the string "Expected price: " is displayed along with the actual value of the expected_price field.

<kanban>
    <field name="name"/>
    <field name="expected_price" t-field="('Expected price: %s' % record.expected_price)"/>
    <field name="best_offer" t-field="('Best offer: %s' % record.best_offer)"/>
    <!-- Add more fields with descriptions as needed -->
</kanban>

   



Hope it helps

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
edit the label name of "Internal Reference" Product
form field label
Avatar
Avatar
Avatar
2
Nov 18
5859
how to create dynamic field labels? Diselesaikan
field v7 label
Avatar
Avatar
Avatar
2
Des 23
21162
Field label not displayed Diselesaikan
field display label not
Avatar
Avatar
Avatar
Avatar
3
Apr 23
56163
V14e: How do I display icon.png in my_module App Kanban view? Diselesaikan
kanban description module_images icon.png
Avatar
Avatar
Avatar
2
Nov 22
4528
Print one2many fields in kanban
one2many field print kanban
Avatar
Avatar
1
Mar 19
4438
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now