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, perhaps you want to specify the policy number on your sales order. If you are working in property management, perhaps you would like 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 ...

Get Working with Odoo 10 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.