upgrade-bank-account-fields-python (U2026)#
Python code uses a res.partner.bank field renamed in Odoo 20.0.
Applies to Odoo 20.0 and later.
What it does#
Reports acc_number, acc_holder_name, acc_type and
sanitized_acc_number as attributes and string literals, and calls to
retrieve_acc_type.
Why is this bad?#
Odoo 20.0 renamed them account_number, holder_name, account_type,
sanitized_account_number and retrieve_account_type, without aliases.
Fix safety#
Unsafe: the names are replaced, which is wrong for another model with a field of the same name.