[FIX] Added a type checking in write method, because sometimes an id is given instead of ids.
[FIX] Added a type checking in write method, because sometimes an id is given instead of ids.

akretion/openerp-server,akretion/openerp-server,akretion/openerp-server