[IMP] doc: add testing reference and improve docstrings
[FIX] web: destroy modal on cross click or escape

Instead of just hidding it
Otherwise, when opening a new dialog, it is considered that there is a previous opened dialog, and this can lead to refresh the record which opened the hidden/previous dialog

This is related to rev. 57b48602fb7afa5d0539e8d0caa8d1e10c3910e5
Merge branch '8.0' of https://github.com/odoo/odoo into 8.0-linux64