Skip to content

Commit 569a7ad

Browse files
committed
[FIX] account_payment: remove typo from uninstall hook
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]>
1 parent 4bfaf92 commit 569a7ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/account_payment/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def uninstall_hook(cr, registry):
2121
env = api.Environment(cr, SUPERUSER_ID, {})
2222
installed_providers = env['payment.provider'].search([('module_id.state', '=', 'installed')])
2323
env['account.payment.method'].search([
24-
('code', 'in', installed_providers.mapped('provider')),
24+
('code', 'in', installed_providers.mapped('code')),
2525
('payment_type', '=', 'inbound'),
2626
]).unlink()

0 commit comments

Comments
 (0)