Technical Odoo Updates (May 2015)

Helpfull commits and pull requests of the month

Christoph Giesel
With this blog post we start a monthly serial of posts about technical updates in odoo. This blog posts contain interesting commits and pull requests which can be nice to know and can help to develop for odoo in a better way or increasing the performance of odoo. The pull requests don't have to be created in this month but were updated recently.

Commits

Odoo image and text block

SEARCH FIXES IN THE ODOO BACKEND Part 1 (COMMIT)

Some search problems in the backend were fixed in odoo. It was not possible to search floating fields correctly with another decimal operator than the period ".".

The german language had this problem for example, the decimal operator is "," and the thousand operator is ".". If you searched for 333,95 this value was transformed to 333.95 and then odoo searched for 33395 because of the thousand operator ".".

Now the search for 333,95 will give the correct results.

SEARCH FIXES IN THE ODOO BACKEND Part 2 (COMMIT)

Some search problems in the backend were fixed in odoo. Searching for not set many2one property fields like the "Customer Payment Term" in partners return less results than expected.

The problem was that only entries were taken into account where the property field was set to "NULL".

Now the search for not set property fields return the correct result.

Odoo text and image block
Odoo image and text block

SAFARI UNICODEDECODE ERROR (COMMIT)

The odoo developers fixed a UnicodeDecodeError which occured only in Safari. Reports with special characters in the file name couldn’t be open in Safari for example because of an UnicodeDecodeError.

If you used the german language for example the problem occured for incoming shipment reports because the file name is "Empfangsbestätigung".

The problem was detected and solved in v7 and the solution was forwarded to v8.

OPEN PULL REQUESTS

[FIX] DON'T RECOMPUTE OLD FIELDS IF RECOMPUTE=FALSE (#6626)

Currently you can set context['recompute'] to False on creation of records to prevent recomputation of the stored values. With this pull request you can do this in the same way with write operations.

[FIX] A GRACEFUL SHUTDOWN MUST SEND SIGINT INSTEAD OF SIGTERM TO WORKERS (#6738)

If the worker mode is used and odoo gets a signal to shutdown it sends a SIGTERM (15) to the works. With this change the signal SIGINT (2) will be send so that the workers can terminate their current requests.

Odoo image and text block

[8.0] [IMP] LOAD_NEEDACTION RESPONSE TIME (#6772)

Did you noticed slow loading of the odoo menu? This pull request decreases the loading time of the AJAX call “load_needaction”. In the tests of the author of the pull request the time decreased from 955ms to 122ms.

[IMP] MAKE MANY2MANY TAGS INLINE BLOCK WITHOUT WRAPPING (#6963)

Just a small change but it looks nicer: The tags in the many2many tags fields are wrapped if they are too long. For example if you have a deep hierarchy of partner tags then the tags are wrapped. With this pull request the tags starting in the next line if they are too long.

Odoo text and image block

About Christoph Giesel

He drinks no coffee but likes mate, python and devOps stuff.