Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Consulting
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

How to create custom decorations in the tree view?

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
treeviewdecorationv15
3 Replies
9382 Rodiniai
Portretas
Guillaume Deflaux

Hi,

I'd like to know if it's possible to define custom decorations for the tree view or if there is a way to specify custom colors for lines.

Thanks!

0
Portretas
Atmesti
Ibrahim Boudmir

Hi,

Possible decorations are listed here: https://www.odoo.com/fr_FR/forum/aide-1/what-are-the-possibilities-of-decoration-100630

you can check in code how they are defined and add, likewise, your custom ones.

Guillaume Deflaux
Autorius

Thanks!

Sehrish

Decoration in Tree View: https://learnopenerp.blogspot.com/2022/05/decorate-text-bold-italic-colors-field-in-tree-view-column-odoo-15.html

Portretas
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


Try referring the blog on How to Add Colors to Tree View in Odoo 15 :  https://www.cybrosys.com/blog/how-to-add-colors-to-tree-view-in-odoo-15


Hope it helps

0
Portretas
Atmesti
Portretas
Gaston Carrera
Best Answer

Hi! I was able to create one IN ODOO 12!, but i needed to modify some little things in the base and web modules, wich isnt too recomended, but are little changes without risk of "watefall failure"

(essentialy i search in base and web the appears of "decoration-success" together with the other decorators and repast him defining for "decoration-customized1" , and finally creating in one .css  in my main module the style for o_list_view o_data_row o_text-customized1)


1)  base-> ir_ui_view python

add in ATTRS_WITH_FIELD_NAMES the


    'decoration-customized1',


2) in web/static/src/js/views/list/list_renderer.js

in var DECORATIONS = add


    'decoration-customized1',


3) in base/rng/tree_view.rng add:


            <rng:optional><rng:attribute name="decoration-customized1"/></rng:optional>


4)in my main module in

static/src/css/your_custom_classes.css define the style, for example:



.o_list_view .o_data_row.decoration-customized1 {


    background-color: #ffe4b5 !important; /* ejemplo: un beige suave */


    color: #000000 !important; /* texto rojo oscuro */


}


.o_list_view .o_data_row.text-customized1 {


    background-color: #ffe4b5 !important; /* ejemplo: un beige suave */


    color: #000000 !important; /* texto rojo oscuro */


}


5) and then in my main module

views/assets.xml declare


<?xml version="1.0" encoding="UTF-8"?>


<odoo>


  <data>


    <!-- Carga JS y CSS en backend -->


    <template id="assets_backend" inherit_id="web.assets_backend" name="Abatar Trucks Assets">


      <xpath expr="." position="inside">


        <link rel="stylesheet" type="text/css" href="/your_custom_module/static/src/css/your_custom_classes.css"/>


      </xpath>


    </template>


  </data>


</odoo>




6) add the "assets.xml" in your manifest declaration



This had to be enough.

If some dont work i call some modifys additionals that made, but im not sure about if are essentially necessary:


in web/static/lib/bootstrap/css/bootstrap.css


.text-customized1 {


  color: #000000 !important;


}




a.text-customized1:hover, a.text-customized1:focus {


  color: #555555 !important;


}



in web/static/lib/bootstrap/scss/_variables.scss

here are some color definitions that can create

replying the "succes" or "mute" for

customized1



and in web/static/lib/bootstrap/scss/utilities/_text.scss 

too


I hope that be useful like a guide at least!

0
Portretas
Atmesti
Portretas
Jainesh Shah(Aktiv Software)
Best Answer

Hi Guillaume Deflaux,

Can you please check the below link to define custom decorations for the tree view with specify custom colors for lines:

https://www.cybrosys.com/blog/add-colors-to-tree-view-odoo-13

I Hope this will help you. 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

0
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registracija
Related Posts Replies Rodiniai Veikla
Hide column in list view based on context/domain
treeview v15
Portretas
Portretas
1
geg. 22
4073
Call an intermediate wizard on Create or Delete button in a tree view
wizard treeview v15
Portretas
0
saus. 23
2695
CRM LEAD TREE (VIEW:LIST) DECORATION Solved
many2one decoration v15
Portretas
Portretas
Portretas
2
vas. 22
3593
Auto refresh tree view Solved
treeview automated refresh v15
Portretas
Portretas
1
birž. 23
5871
How to change the list view color for dates in odoo ?
treeview listview odoo11 decoration
Portretas
Portretas
Portretas
Portretas
3
bal. 21
6621
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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