Odoo. Approved by IT Libertas. October 2016 (I)

Special technical tools: Time picker widget, Color in tree views, Fields for programming

IT Libertas, Aleksandr Filippov

The following apps have been tested and have been approved by IT Libertas developers, in order to help you use Odoo. When programmers had faced any bugs, they fixed them. The resulted modules are structured and would be used as a base of Odoo implementation. Besides, each description contains links to download an application and to configure it with your own hands

Timepicker Widget

Odoo 9
Вариант настройки виджета

The app adds the widget to set time flexibly (used for float fields).

The functionality relies upon the external tool - jquery-timepicker, which let you make comfortable configurations: change step or format.

Thus, you may set different time precision. For example, viable delivery is 15 minutes, while breaks' time should be measured with a minute precision.

Работа виджета по-умолчанию
Новый формат Float поля

Colorize Tree Views

Odoo 8
Odoo 9

The app is a technical tool to work with fields' colors in tree views:

1. Set font and background color of fields. Use the attributes "fg_color" and "bg_color" correspondingly. The syntax is the same as "color" for the tag "tree"

2. Set the whole line color by changing color field (in any CSS-compatible format)

3. Take into account the priorities:

  • Cell background color (bg_color)
  • Cell font color (fg_color)
  • Color field (color_field).
<tree string="Contacts" color_field="fax">
     <field name="display_name" bg_color="grey:phone==False;"/>
     <field name="phone" fg_color="orange:email==False;"/>
     <field name="email"/>
     <field name="fax"/>
Be cautious: in Odoo 9  the attribute color_field doesn't work.
пример для odoo9
Пример представления с

"Code" widget

Odoo 9

The app is a technical module, which adds the widget "Code" to text fields. The widget activates the highlighter for the following programming languages:

  • python
  • xml
  • html
  • json
  • javascript
  • sh
The module does not require extra configuration.