[IMP]Improved code by removing duplicate code.
[IMP]Improved code by removing duplicate code.

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