You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

技术咨询:Odoo-10版本中res.partner的具体位置在哪里?

Hey there! Let's break down where you can find res.partner in Odoo 10, both in the codebase and the user interface:

1. Codebase Location (File System Paths)

In Odoo 10's source code, the res.partner model and its related files live in the base module (the core module that powers Odoo's foundational features):

  • Core model definition: odoo/addons/base/res/res_partner.py
    This is where the model's fields, methods, and core business logic are defined.
  • UI view configurations: odoo/addons/base/res/res_partner_views.xml
    You'll find all the form, list, search, and kanban views for res.partner here.
  • Default data records: odoo/addons/base/res/res_partner_data.xml
    This file includes initial default data like country records, default company info, and other base partner entries.
2. Backend UI Location

If you're looking to access res.partner records through the Odoo 10 web interface:

  • Direct entry: Go to the Contacts menu (labeled "联系人" in Chinese interfaces). Every record you see here is an instance of res.partner.
  • Indirect access via related modules: Many other modules tie into res.partner. For example:
    • In the Sales module, the "Customers" menu pulls res.partner records marked as customers (via the customer boolean field).
    • In the Purchases module, "Suppliers" are res.partner records marked as suppliers (via the supplier boolean field). You can navigate to full partner profiles from these related menus too.

A quick tip: If you're building a custom module and want to extend res.partner, you don't need to modify the base module files—just inherit the model in your own module's code!

内容的提问来源于stack exchange,提问作者Shubham Biniwale

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:05:37