Odoo Help

1

What are the possibilities of decoration?

By
Pieter Paulussen
on 4/14/16, 8:27 AM 1,182 views

Is there a list with all posibilities for the 'decoration-xxx' attribute for OdooV9? I noticed that full bootstrap support is not given (f.i.: decoration-bg-danger="xxx").

Is it possible to combine the conditional statements?

Example: decoration-info="(duration>5) and (duration<10)"

Is it therefore always necessary to define a state in the python file to be able to use the necessary decoration?

3

Ray Carnes

--Ray Carnes--
16349
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0.

Completed Odoo Functional and Technical Training.

Major Skills:

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 4/14/16, 8:39 AM

decoration-bf - shows the line in BOLD

decoration-it - shows the line in ITALICS

decoration-danger - shows the line in LIGHT RED

decoration-info - shows the line in LIGHT BLUE

decoration-muted - shows the line in LIGHT GRAY

decoration-primary - shows the line in LIGHT PURPLE

decoration-success - shows the line in LIGHT GREEN

decoration-warning - shows the line in LIGHT BROWN

You can review the RNG file defining the allowable XML tags and attributes at https://github.com/odoo/odoo/blob/9.0/openerp/addons/base/rng/view.rng


UPDATE:

As applied to Boolean fields:

<tree decoration-muted="scrapped == True" string="Stock Moves">

Nice answer Ray! Just wondering: how could you use decorations in combination with boolean fields?

Yenthe
on 4/14/16, 10:52 AM

Just for the record: when using different website themes, these colors may vary according to the theme settings.

Ermin Trevisan
on 4/15/16, 5:28 AM

and adding the required documentation page https://www.odoo.com/documentation/9.0/reference/views.html#lists https://www.odoo.com/documentation/9.0/howtos/backend.html#id3

Martin Trigaux (mat)
on 4/19/16, 2:12 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 4/14/16, 8:27 AM
Seen: 1182 times
Last updated: 4/19/16, 1:52 AM