odoo_rest_ov_flutter library

Flutter-specific extensions for odoo_rest_ov.

Provides persistent cookie storage and convenience client creation for Flutter apps.

import 'package:odoo_rest_ov/odoo_rest_ov_flutter.dart';
import 'package:path_provider/path_provider.dart';

final dir = await getApplicationDocumentsDirectory();
final client = OdooFlutter.createClient(
  baseUrl: 'https://mycompany.odoo.com',
  database: 'mydb',
  documentsPath: dir.path,
);

Classes

JsonRpc
Static helpers for JSON-RPC 2.0 communication with Odoo.
JsonRpcRequest
Builds a JSON-RPC 2.0 request payload.
JsonRpcResponse
Parses a JSON-RPC 2.0 response.
OdooClient
The main entry point for interacting with an Odoo server.
OdooClientOptions
Configuration for OdooClient.
OdooControllerResponse
Structured response from an Odoo web controller call.
OdooDomain
Fluent, type-safe builder for Odoo domain filters.
OdooDomainField
Represents a field in a domain expression, providing comparison operators.
OdooFlutter
Flutter-specific helpers for OdooClient.
OdooSession
Represents an authenticated Odoo session.
ServerInfo
Server version information returned by /web/webclient/version_info.

Enums

OdooUserType
The type of Odoo user.

Mixins

OdooOrm
Mixin providing typed ORM method wrappers for Odoo's call_kw endpoint.

Extensions

OdooRecordExtension on OdooRecord
Convenience extensions on OdooRecord.

Typedefs

OdooRecord = Map<String, dynamic>
An Odoo record represented as a map of field names to values.

Exceptions / Errors

OdooAccessDeniedException
Thrown when authentication credentials are invalid.
OdooAccessErrorException
Thrown when the user lacks access rights.
OdooException
Base exception for all Odoo errors.
OdooMissingErrorException
Thrown when a referenced record does not exist.
OdooNetworkException
Thrown when a network error occurs (timeout, DNS, connectivity).
OdooProtocolException
Thrown when the server response is not valid JSON-RPC 2.0.
OdooRpcException
Base for Odoo business-logic errors returned via JSON-RPC.
OdooSessionException
Base for session-related errors.
OdooSessionExpiredException
Thrown when the session has expired and must be re-authenticated.
OdooUserErrorException
Thrown for user-facing errors (e.g. business rule violations).
OdooValidationException
Thrown when a record fails validation constraints.