Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profit organisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Odoo 16 - Standard Kanban view: description beside value

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
fieldlabelkanbandescriptionstring
2 Antwoorden
4649 Weergaven
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
Annuleer
Avatar
Onik
Beste antwoord

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
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
edit the label name of "Internal Reference" Product
form field label
Avatar
Avatar
Avatar
2
nov. 18
5871
how to create dynamic field labels? Opgelost
field v7 label
Avatar
Avatar
Avatar
2
dec. 23
21185
Field label not displayed Opgelost
field display label not
Avatar
Avatar
Avatar
Avatar
3
apr. 23
56180
V14e: How do I display icon.png in my_module App Kanban view? Opgelost
kanban description module_images icon.png
Avatar
Avatar
Avatar
2
nov. 22
4538
Print one2many fields in kanban
one2many field print kanban
Avatar
Avatar
1
mrt. 19
4446
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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