OdooRecord class

OdooRecord is immutable representation of Odoo record.

Constructors

OdooRecord(int id)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates JSON from OdooRecord compatible with fromJson. Used to cache records.
toString() String
A string representation of this object.
inherited
toVals() Map<String, dynamic>
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).

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

oFields List<String>
List of fields to fetch
no setter

Static Methods

fromJson(Map<String, Object> json) OdooRecord
Creates OdooRecord from JSON returned by search_read() or cache.