Odoo 19.0 Community · Persistent

res.partner.bank: fields, relations and API

The res.partner.bank model ("Bank Accounts") is a persistent model declared by the Base module, then extended by 5 other modules. It exposes 76 fields, 46 of them declared directly on the model; 13 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.

Model identity

Technical name
res.partner.bank
Label
Bank Accounts
Type
Persistent (models.Model)
SQL table
res_partner_bank
Origin module
Base (base)
Extended by
account, account_qr_code_emv, base_iban, account_qr_code_sepa, hr
Default order (_order)
sequence, id
Display field (_rec_name)
acc_number
Inherits from (mixins)
mail.threadmail.activity.mixin

Model fields

46 own fields, 24 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.

76 of 76 fields shown

Technical nameLabelTypeDetails
acc_holder_nameAccount Holder Name

Account holder name, in case it is different than the name of the Account Holder

char
computed, stored
acc_numberAccount Numberchar
required
acc_typeType

Bank account type: Normal or IBAN. Inferred from the bank account number.

selection
computed

Values computed at runtime

activeActiveboolean
allow_out_paymentSend Money

Sending fake invoices with a fraudulent account number is a common phishing practice. To protect yourself, always verify new bank account numbers, preferably by calling the vendor, as phishing usually happens when their emails are compromised. Once verified, you can activate the ability to send money.

boolean
bank_bicBank Bicchar

related: bank_id.bic

bank_cityBank Citychar

related: bank_id.city

added by Employees (hr)

bank_countryBank Countrymany2one

related: bank_id.country

added by Employees (hr)

bank_emailBank Emailchar

related: bank_id.email

added by Employees (hr)

bank_idBankmany2one
bank_nameBank Namechar

related: bank_id.name

bank_phoneBank Phonechar

related: bank_id.phone

added by Employees (hr)

bank_stateBank Statemany2one

related: bank_id.state

added by Employees (hr)

bank_streetBank Streetchar

related: bank_id.street

added by Employees (hr)

bank_street2Bank Street2char

related: bank_id.street2

added by Employees (hr)

bank_zipBank Zipchar

related: bank_id.zip

added by Employees (hr)

clearing_numberClearing Numberchar
colorColorinteger
computed
company_idCompanymany2one
read-only

related: partner_id.company_id

country_codeCountry Codechar

related: partner_id.country_code

country_proxy_keysCountry Proxy Keyschar
computed

added by account_qr_code_emv (account_qr_code_emv)

currency_idCurrencymany2one
currency_symbolCurrency Symbolchar

related: currency_id.symbol

added by Employees (hr)

display_qr_settingDisplay Qr Settingboolean
computed

added by account_qr_code_emv (account_qr_code_emv)

duplicate_bank_partner_idsDuplicate Bank Partnermany2many
computed

added by Invoicing (account)

employee_has_multiple_bank_accountsEmployee Has Multiple Bank Accountsboolean

related: employee_id.has_multiple_bank_accounts

added by Employees (hr)

employee_idEmployeemany2many
computed

added by Employees (hr)

employee_salary_amountSalary Allocationfloat
read-onlycomputed

added by Employees (hr)

employee_salary_amount_is_percentageEmployee Salary Amount Is Percentageboolean
read-onlycomputed

added by Employees (hr)

has_iban_warningHas Iban Warning

Technical field used to display a warning if the IBAN country is different than the holder country.

boolean
computed, stored

added by Invoicing (account)

has_money_transfer_warningHas Money Transfer Warning

Technical field used to display a warning if the account is a transfer service account.

boolean
computed, stored

added by Invoicing (account)

include_referenceInclude Reference

Include the reference in the QR code.

boolean

added by account_qr_code_emv (account_qr_code_emv)

journal_idAccount Journal

The accounting journal corresponding to this bank account.

one2many
read-only

inverse: bank_account_id

added by Invoicing (account)

lock_trust_fieldsLock Trust Fieldsboolean
computed

added by Invoicing (account)

money_transfer_serviceMoney Transfer Servicechar
computed

added by Invoicing (account)

noteNotestext
partner_country_namePartner Country Namechar

related: partner_id.country_id.name

added by Invoicing (account)

partner_customer_rankPartner Customer Rankinteger

related: partner_id.customer_rank

added by Invoicing (account)

partner_idAccount Holdermany2one
required
partner_supplier_rankPartner Supplier Rankinteger

related: partner_id.supplier_rank

added by Invoicing (account)

proxy_typeProxy Typeselection

Values: none (None)

added by account_qr_code_emv (account_qr_code_emv)

proxy_valueProxy Valuechar

added by account_qr_code_emv (account_qr_code_emv)

sanitized_acc_numberSanitized Account Numberchar
read-onlycomputed, stored
sequenceSequenceinteger
user_has_group_validate_bank_accountUser Has Group Validate Bank Accountboolean
computed

added by Invoicing (account)

activity_calendar_event_idNext Activity Calendar Eventmany2one
computed

inherited from mail.activity.mixin

activity_date_deadlineNext Activity Deadlinedate
read-onlycomputed

inherited from mail.activity.mixin

activity_exception_decorationActivity Exception Decoration

Type of the exception activity on record.

selection
computed

Values: warning (Alert), danger (Error)

inherited from mail.activity.mixin

activity_exception_iconIcon

Icon to indicate an exception activity.

char
computed

inherited from mail.activity.mixin

activity_idsActivitiesone2many

inverse: res_id

inherited from mail.activity.mixin

activity_stateActivity State

Status based on activities Overdue: Due date is already passed Today: Activity date is today Planned: Future activities.

selection
computed

Values: overdue (Overdue), today (Today), planned (Planned)

inherited from mail.activity.mixin

activity_summaryNext Activity Summarychar

related: activity_ids.summary

inherited from mail.activity.mixin

activity_type_iconActivity Type Iconchar

related: activity_ids.icon

inherited from mail.activity.mixin

activity_type_idNext Activity Typemany2one

related: activity_ids.activity_type_id

inherited from mail.activity.mixin

activity_user_idResponsible Usermany2one
read-onlycomputed

inherited from mail.activity.mixin

has_messageHas Messageboolean
computed

inherited from mail.thread

message_attachment_countAttachment Countinteger
computed

inherited from mail.thread

message_follower_idsFollowersone2many

inverse: res_id

inherited from mail.thread

message_has_errorMessage Delivery error

If checked, some messages have a delivery error.

boolean
computed

inherited from mail.thread

message_has_error_counterNumber of errors

Number of messages with delivery error

integer
computed

inherited from mail.thread

message_has_sms_errorSMS Delivery error

If checked, some messages have a delivery error.

boolean
computed

inherited from mail.thread

message_idsMessagesone2many

inverse: res_id

inherited from mail.thread

message_is_followerIs Followerboolean
computed

inherited from mail.thread

message_needactionAction Needed

If checked, new messages require your attention.

boolean
computed

inherited from mail.thread

message_needaction_counterNumber of Actions

Number of messages requiring action

integer
computed

inherited from mail.thread

message_partner_idsFollowers (Partners)many2many
computed

inherited from mail.thread

my_activity_date_deadlineMy Activity Deadlinedate
read-onlycomputed

inherited from mail.activity.mixin

rating_idsRatingsone2many

inverse: res_id

inherited from mail.thread

website_message_idsWebsite Messages

Website communication history

one2many

inverse: res_id

inherited from mail.thread

create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

Reading this model through the API

Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.

curl
curl -X POST "https://your-instance.odoo.com/json/2/res.partner.bank/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["acc_number","partner_id","bank_country","bank_id","bank_state"],"limit":5}'
Python (requests)
import requests

BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}

res = requests.post(
    f"{BASE_URL}/res.partner.bank/search_read",
    headers=headers,
    json={"domain": [], "fields": ["acc_number","partner_id","bank_country","bank_id","bank_state"], "limit": 5},
)
res.raise_for_status()
print(res.json())
  • External API access requires Odoo's Custom plan.
  • XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
  • The access rights and record rules of the key's user apply.

Cite this tool

Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.

<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/res-partner-bank">res.partner.bank (Odoo 19.0)</a>

Sources

Data verified on September 23, 2026 · Odoo 19.0 Community

Have an Odoo project, or want to put your ERP to work with AI? Let's talk

Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.