Special field names

A few field names are reserved for use by the ORM.

The id field is an automatic number uniquely identifying each record, and used as the database primary key. It's automatically added to every model.

The following fields are automatically created on new models, unless the _log_access=False model attribute is set:

  • create_uid is for the user that created the record
  • create_date is for the date and time when the record is created
  • write_uid is for the last user to modify the record
  • write_date is for the last date and time when the record was modified

The information in these fields is available in the web client, in the Developer Mode menu, by selecting the View Metadata option.

Some built-in API features expect specific ...

Get Odoo 11 Development Essentials - Third 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.