toVals method
Creates JSON from OdooRecord compatible with Odoo's create() and write(). In opposite to toJson() it should represent relational fields as integer instad of tuple (id, name).
Implementation
Map<String, dynamic> toVals() {
return {'id': id};
}