[FIX] Code optimization as per suggestion.
[FIX] Code optimization as per suggestion.

havt/openerp-web,havt/openerp-web,havt/openerp-web,akretion/openerp-web,akretion/openerp-web,havt/openerp-web,havt/openerp-web,akretion/openerp-web