[FIX] Decorated functions should keep name and docstring.
[FIX] Decorated functions should keep name and docstring.

There are errors with the migrate decorator in Odoo 13.0 and possibly other releases,
because the migration scripts do not have a migrate attribute. This commit recifies
that situation.

OCA/openupgradelib