Odoo. Approved by IT Libertas. February 2017 (I)

Tree colors using Odoo filters, Test environment, Mail tracking

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

Tree colors through filters

Odoo 8

The app allow you use the context in the parameter color. Thus, you may colorify lines with filters, for instance.

For example, to use it in the tree view of invoices:

  1. Add a search filter: <filter name="paid_green" string="Show paid invoices in green" context="{'paid_should_be_green': True}" />

  2. Change tree view to: <tree colors="green:state == 'paid' and context.get('paid_should_be_green')">

  3. Now, when you select the filter "Show paid invoices in green", paid invoiced would be marked green

Test Mode

Odoo 8
Odoo 9
test mode

The app aims to remind a developer in which environment he/she is working at the moment. Besides, it restricts sending notifications.

System configuration now contains checkboxes "Test Environment" & "Development Environment". Depending on the selected option, each page, defined by the route /web, would explicitly indicate this database goal. Modes priority: Test Environment > Development Environment.

Finally, each time when Odoo would try to send an email, the app would stop the process in case of any environment chosen.

development mode
random page on /web route
attempt sending email

Mail Tracking

Odoo 8
Odoo 9
Tracking emails button
The app is a tool to track messages and notifications (for any model which inherits mail.thread).
There are 6 states of notifications:
  • Unknown: no information is available (e.g., receivers decides to set up the profile with 'Receive Inbox Notifications by Email' == 'Never');
  • Waiting: the message would be sent;
  • Error: there was some trouble while sending the message;
  • Sent: an indicated SMTP server receives the message;
  • Delivered: a final server receives the message;
  • Opened: receivers opens this message.
Each message state for each receiver is indicated near this receiver's email address (see the screenshot).
The data about all notifications related to this object is available through the button "Tracking email" in the top right corner.
Message status indication
Mail status for mail.thread child