[FIX] Error when installing module document

fix: #2005 

- Traceback when installing module "document"

thanks
rba-odoo