Adding a custom field to Odoo

One of the most common reasons for customizing Odoo is to collect additional information that is specific to your company. If you are running an insurance company, for example, you may want to specify the policy number on your sales order. If you are working in property management, you might want to store the date on which the lease agreement will expire.

For our working example, we will be adding fields that will help us better manage the data and processes for our silkscreen company. Specifically, we will be adding the following fields to the sales order header:

Field name

Label

Field type

Purpose

x_daterequired

Date Required

Date

In the screen printing industry, deadlines drive when production begins and when the product should be delivered to the customer.

x_rush

Rush Order

Boolean

Related to Date Required is the necessity to flag some sales orders as rush orders. A Rush Order can then be prioritized and given expedited treatment.

Custom field names in Odoo are preceded by x_. This is so that field names in future Odoo versions and standard updates will not accidentally conflict with the custom fields you have added.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.164.241