Skip to content
Snippets Groups Projects
Commit 6b937382 authored by Lucas Lefèvre's avatar Lucas Lefèvre
Browse files

[FIX] test_assetsbundle: Properly unpatch ir.attachment


`_patch_method` and `_revert_method` do not work properly.
This commit fixes a test which patches `create` and `unlink`
of `ir.attachment`.
The methods are not correctly unpatched.

One consequence:
if a module is installed after this test is executed and
the new module overrides `create` and `unlink`, the overritten
methods are never called.

closes odoo/odoo#33952

Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
parent bafe8230
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment