OdooRecord class
OdooRecord is immutable representation of Odoo record.
Constructors
- OdooRecord(int id)
-
const
Properties
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 Methods
-
fromJson(
Map< String, Object> json) → OdooRecord - Creates OdooRecord from JSON returned by search_read() or cache.