Skip to content
Snippets Groups Projects
Commit ef4aaeb4 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] base: res.partner.bank sequence


`res.partner.bank` is ordered by sequence, but:
- there is no default value
- there is no widget handle to set it

Therefore, methods such as `_get_partner_bank_id` might retrieve an
unexpected value.

To avoid this:
- we fallback to sort by ID
- we add a default value
- we add the widget handle

opw-1948964

closes odoo/odoo#32300

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 67ea2646
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment