The ORM provides three methods for the three basic write operations, shown as follows:
- <Model>.create(values) creates a new record on the model. It returns the created record.
- <Recordset>.write(values) updates field values on the recordset. It returns nothing.
- <Recordset>.unlink() deletes the records from the database. It returns nothing.
The values argument is a dictionary, mapping field names to values to write. The methods are decorated with @api.multi, except for the create() method, which is decorated with @api.model.