Skip to content

Commit

Permalink
[FIX] account_payment: remove typo from uninstall hook
Browse files Browse the repository at this point in the history
A typo in the uninstall hook of the account_payment module tries to access a
non-existing field, resulting in an error during module removal.

The uninstall hook was introduced by commit [1], however the bug was actually
introduced by commit [2] including a rename of the field being accessed.

[1]: odoo@61b8c0c
[2]: odoo@f7b8f07

closes odoo#100907

X-original-commit: ffb7411
Signed-off-by: Victor Feyens (vfe) <[email protected]>
  • Loading branch information
tdecaluwe committed Sep 23, 2022
1 parent 4bfaf92 commit 569a7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account_payment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def uninstall_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
installed_providers = env['payment.provider'].search([('module_id.state', '=', 'installed')])
env['account.payment.method'].search([
('code', 'in', installed_providers.mapped('provider')),
('code', 'in', installed_providers.mapped('code')),
('payment_type', '=', 'inbound'),
]).unlink()

0 comments on commit 569a7ad

Please sign in to comment.