跳至内容
Alitec 2026
  • 首页
  • 联系
  • 博客
  • 预约
  • 解决方案

    ERP 平台

    Odoo ERP

    为企业打造的一体化运营系统

    Odoo 20

    探索新一代 Odoo

    专业解决方案

    定制解决方案

    40 套可灵活调整的行业工作流程

    AI 工作空间

    将实用的 AI 助手融入日常工作

    Lark

    互联的工作与协作体验

    3CX

    商务通话、视频与消息沟通

    JumpCloud

    身份、访问与设备管理

    中国企业服务

    连接新加坡与东盟市场拓展

    电子发票

    支持 InvoiceNow 的开票与合规管理
    新加坡与马来西亚

    为您的团队找到合适的工作流程

    浏览适用于服务、分销、建筑、零售及专业服务企业的实用方案。

    浏览全部解决方案 咨询专家
  • 资助
  • 关于
  • Helpdesk
Alitec 2026
      • 首页
      • 联系
      • 博客
      • 预约
      • 解决方案
      • 资助
      • 关于
      • Helpdesk

    How to add a field on Odoo

  • 所有博客
  • Technical
  • How to add a field on Odoo
  • 2022年1月3日 由
    How to add a field on Odoo
    Dominique Kon-Sun-Tack
    How to add a field on Odoo 

    This is a sample “sales” module of Odoo version 8, loaded with demo data.
    Under the “sales” module, “Sales/Customers” label, I have opened “Michel Fletcher” customer form for the example.

    Customisation Needed: I want to be able to enter the contact’s Personal Mobile Phone in a separate field.


    Step 1: Enable technical features
    Under the “Settings” module, “Users/Users”, select the administrator profile and enable “Technical Features”


    Step 2: Activate the developer mode
    This ensures that previously hidden features in various menus are now visible.




    Step 3: Add a field in the database
    Under “Settings” module, “Technical/Database Structure/Fields”, choose to "Create" new "field"



    Choose a Field Name with no capital letters or space. This is the “code” that references the new field. This name will be use to call the field in the customer form (refer to step 4). Make sure you keep the “x_” value as you will be able to identify easily fields you manually added.

    Under the Field Label, choose the actual name you want the field to have on your form.
    Under Field Type, choose “char” for a text field
    Under Model, type “res.partner” and select “Partner” in the drop down list. This link the new field with the form in which you want the field to appear.


    Step 4: Make the field appear in your form

    Warning: The method described below, is for "education" purpose only. It is to understand how the views are described in xml and rendered. Practically to make a field appear in a view, it is better to use a view that inherits from the original view

    Select a customer to have the customer form appear. Then select the “Edit Form View” as shown below:


    In the XML sheet that appears, look for the word “phone.” If you add your new field just beneath, it will appear at the same place in the customer form as well.


    Be careful and make sure you add the field in the right place in the XML file. Compare the customer form and XML to make sure it is the right place!

    Your field is now created in the Customer Form




    在 Technical
    Customise invoice printout - Odoo Qweb 101
    Alitec

    2016 年成立于新加坡。Odoo 金牌合作伙伴,为中小企业实施 ERP、AI 工作空间及电子发票。

    Singapore #03-07, 1 Pemimpin Drive (One Pemimpin) 576151 [email protected] +65 6262 2001

    Malaysia Wisma S P Setia, (A) C3-0315, Jalan Indah 15, Taman Bukit Indah, 81200, Johor Bahru, Johor, Malaysia [email protected] +60 327123253

    解决方案

    • Odoo ERP
    • Odoo 20
    • 定制解决方案
    • AI 工作空间
    • 电子发票

    公司

    • 资助
    • 关于我们
    • 联系

    资源

    • 服务台
    • 博客
    • 隐私政策
    • Alitec Pte. Ltd. is certified with the Data Protection Trustmark.



    版权 © 公司名称
    简体中文 | English (US)
    由 Odoo - 创建 免费的网站 提供支持