Business logic often means updating records by changing the values of some of their fields. This recipe shows how to add a contact for a partner and modify the date field of the partner as we go.
Updating values of recordset records
Getting ready
This recipe will use the same simplified res.partner definition as the Creating new records recipe. You may refer to this simplified definition to know the fields.
The date field of res.partner has no defined meaning in Odoo. In order to illustrate our purpose, we will use this to record an activity date on the partner, so creating a new contact should update the date of the partner.